为网站其中一个域名配置反向代理后服务器出现外网完全无法访问的情况。无法ping通、无法通过外网SSH链接、网站打不开,且安全组策略与防火墙都为关闭状态。
NGINX等运行环境均正常。
以下反向代理配置文件粘贴后出现以上问题。
#PROXY-START/
location ^~ /
{
proxy_pass http://27.151.29.69:10014/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
add_header X-Cache $upstream_cache_status;
#Set Nginx Cache
set $static_filec2XEbwGi 0;
if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
{
set $static_filec2XEbwGi 1;
expires 12h;
}
if ( $static_filec2XEbwGi = 0 )
{
add_header Cache-Control no-cache;
}
}
#PROXY-END/
|
|