码迷,mamicode.com
首页 > Web开发 > 详细

laravel-nginx 配置隐藏index.php

时间:2017-07-27 13:32:01      阅读:686      评论:0      收藏:0      [点我收藏+]

标签:cat   www   nginx 配置   char   file   phpstudy   har   ipa   oca   

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

标签:cat   www   nginx 配置   char   file   phpstudy   har   ipa   oca   

原文地址:http://www.cnblogs.com/szphpxdl/p/7244290.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!