diff --git a/public/nginx.htaccess b/public/nginx.htaccess index 8254399b..57defd49 100755 --- a/public/nginx.htaccess +++ b/public/nginx.htaccess @@ -1,6 +1,8 @@ - location / { // …..省略部分代码 - if (!-e $request_filename) { - rewrite ^(.*)$ /index.php?s=/$1 last; - break; +location / { + index index.html index.htm index.php; + #autoindex on; + if (!-e $request_filename) { + rewrite ^(.*)$ /index.php?s=/$1 last; + break; } - } \ No newline at end of file +} \ No newline at end of file