赵志浩
Published on 2019-11-24 / 17 Visits
0
0

Nginx 常用配置方式说明


NGINX常见使用问题:

 

Nginx 常见错误码汇总(https://www.cnblogs.com/qinghe123/p/8134606.html

 

Nginx 简单文档:https://github.com/DearZh/nginx-tutorial

 

Nginx在线配置: https://nginxconfig.io/?0.redirect=false&0.php=false&0.index=index.html&0.fallback_html

 

expires -1:要求浏览器不缓存任何响应数据,避免IE每次发送请求时都使用的本地缓存数据的问题(具体也是参考:https://github.com/DearZh/nginx-tutorial

 

proxy_pass 代理 加 反斜杠和不加反斜杠的区别 /  https://www.cnblogs.com/Star-Haitian/p/10455588.html

 

alias目录指定,和直接root目录指定的区别; https://blog.csdn.net/qq_36826506/article/details/83110800

 

proxy_pass 代理请求后,样式丢失问题( https://blog.csdn.net/qq_27184497/article/details/82292399

 

server_name的作用和区分( https://blog.csdn.net/w05980598/article/details/79116473  https://blog.csdn.net/Cheng_Kohui/article/details/82930464

 

常用的代理配置场景说明: https://blog.csdn.net/faye0412/article/details/75200607

 

通过增加add_header头的方式,可以查看出当前所发送的请求最终被转发到了那台服务器,具体也可看,sip的/app/nginx-ws1/conf/conf.d/global_proxy_server.conf(https://blog.csdn.net/zhangjunli/article/details/80649002


Comment