For a server {} that you want to make both universally compatible with both
http port 80 and https port 443 ssl requests.
This was my solution for my own sites.
#inside http block
upstream proxy_web_rack { #port 80 unsecured requests
server 172.16.0.1:80;
}
upstream proxy_web_rack_ssl { #port 443
I think i already tried what you suggested, but that doesn't work because i
have to set a specific protocol in the proxy_pass command (http or https). If i
have a mixed upstream group like
upstream proxy_backend {
server xxx.xx.188.53;
server xxx.xx.188.53:443;
}
i always get
No they cannot be the same (sadly) because i dont't know how the upstream is
serving the content. Think of a situation where i am not in control of the
upstream backends and they may change from http to https over time.
Von: nginx im Auftrag von Cox, Eric S
Ge