首页 > 代码库 > laravel-nginx 配置隐藏index.php

laravel-nginx 配置隐藏index.php

server {
listen 80;
server_name localhost;

#charset koi8-r;

#access_log logs/host.access.log main;
root "D:/phpStudy/WWW/m.idaipai.com/public";
location / {
index index.html index.htm index.php l.php;
autoindex on;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1;
}
}

}

laravel-nginx 配置隐藏index.php