1. 程式人生 > >laravel-nginx 配置隱藏index.php

laravel-nginx 配置隱藏index.php

pst $1 pub local auto php 配置 html write

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