diff --git a/conf/nginx.conf b/conf/nginx.conf index 4f5a265..dbcbd9a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,7 +1,7 @@ root __FINALPATH__/; index index.php; - rewrite ^ https://$server_name$request_uri? permanent; - + if (!-e $request_filename){ rewrite ^(.*)$ /index.php?dir=$1; } + location __PATH__/ { try_files $uri $uri/ /index.php?$args; }