Nginx proxy_set_header指令位置详解:server和location
不可以。proxy_set_header只能放在nginx配置文件中的location内或者server内。在location内设置会覆盖在server内设置的同名header,而在server内设置的会应用于所有location。
AI 优化版
原文地址:https://www.cveoy.top/t/topic/pMiX 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
不可以。proxy_set_header只能放在nginx配置文件中的location内或者server内。在location内设置会覆盖在server内设置的同名header,而在server内设置的会应用于所有location。
原文地址:https://www.cveoy.top/t/topic/pMiX 著作权归作者所有。请勿转载和采集!