laravel-nginx 配置隐藏index.php-wx5acf485188805的博客
server {listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
root "D:/phpStudy/WWW/xxx.com/public";
location / {
index index.html index.htm index.php l.php;
autoindex on;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1;
}
}
}
页:
[1]