admin管理员组文章数量:1391925
map $arg_internal $redirect {
default 0;
"true" 1;
}
server {
#Swap the following two lines to get the redirect working again
server_name developer-nonprod;
listen 9443 ssl;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_certificate /etc/nginx/ssl/server.cer;
ssl_certificate_key /etc/nginx/ssl/server.key;
client_max_body_size 10M;
location / {
proxy_pass ;
}
location /myapps/ {
if ($redirect = 0) {
return 301 https://controlcenter-$arg_env.xyz/enterprise/myapps/;
}
proxy_pass /;
}
location = /myapps {
if ($redirect = 0) {
return 301 https://controlcenter-$arg_env.xyz/enterprise/myapps/;
}
proxy_pass /;
}
}
When the URL is hit with /?env=test4&**internal=true** getting a blank page and in the browser console getting the message something like this - GET / net::ERR_NAME_NOT_RESOLVED
I am not sure why this was getting invoked as per the condition it should not go inside if block.
本文标签: nginx proxy pass issueStack Overflow
版权声明:本文标题:nginx proxy pass issue - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744756017a2623468.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论