![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
blbluu
这个作者很懒,什么都没留下…
展开
-
nginx重写url隐藏index.php
以TP框架为例rewrite 重写server { server_name $host; listen 8070; index index.html index.htm index.php; root /apps/www/php/; access_log logs/test.log; location / { if (!-e $reques原创 2017-08-31 15:41:57 · 1286 阅读 · 0 评论 -
nginx配置本地虚拟域名
一、增加server配置二、配置 server_name 为自己指定的虚拟域名 例:tp.com三、修改本地hosts文件 添加 127.0.0.1 tp.com 重启nginx 然后打开浏览器访问 tp.com测试server配置如下: server { listen 80; server_name tp.com; //指定虚拟域名 #cha原创 2017-09-01 15:22:20 · 3103 阅读 · 0 评论