
nginx
tuonioooo
这个作者很懒,什么都没留下…
展开
-
Nginx 配置中root和alias的区别分析
root和alias都可以定义在location模块中,都是用来指定请求资源的真实路径,比如:?123location /i/ {root /data/w3;}请求http://foofish.net/i/top.gif这个地址时,那么在服务器里面对应的真正的资源是/data/w3/i/top.gif文件注意:真实的路径是root指定的值加上location指定的值 。而 alias 正...原创 2018-03-27 14:06:33 · 71302 阅读 · 11 评论 -
nginx try_files 详解
server { listen 80; server_name localhost; index index.html index.htm index.php; root /data/wwwroot; location /wordpress{ try_files $uri...原创 2018-03-27 15:12:11 · 11477 阅读 · 1 评论