nginx
文章平均质量分 62
chengler
这个作者很懒,什么都没留下…
展开
-
Nginx一个server配置多个location 404问题解决
我选择了配置多个location。location /pc/ { root /data/html/pc/; index index.html index.html; }location /h5/ { root /data/html/h5/; index index.html index.htm; }配置完以后访问。http://xxxx/pc/index.html 提示404找了好久才搞明白,访问 http://xxxx/pc/index.htm原创 2021-07-29 23:30:10 · 1153 阅读 · 0 评论 -
nginx的server、location、root、alias、try_files指令
nginx location 配置1. url 结构说明2. nginx server 部分简单说明3. nginx location 部分简单说明4. root,alias, try_files 的相关配置4.1 root4.2 alias4.3 try_files1. url 结构说明https://zhangsan:123456@hostname:8888/path/path2?param=value#h123参考 URL - Web API 接口参考 | MDN示例部分英文名原创 2021-07-16 19:23:35 · 1721 阅读 · 0 评论