|
@@ -687,6 +687,12 @@ If you have issues with files taking a long time to download, make sure you reco
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
+ location / {
|
|
|
+ rewrite ^/courses/([^/]+)/$ /main/course_home/course_home.php?cDir=$1 last;
|
|
|
+ rewrite ^/courses/([^/]+)/index.php$ main/course_home/course_home.php?cDir=$1 last;
|
|
|
+ try_files $uri @rewrite;
|
|
|
+ }
|
|
|
+
|
|
|
location ~ \.php$ {
|
|
|
client_max_body_size 20M;
|
|
|
try_files $uri /index.php$is_args$args;
|