Sorry, there was a typo in the previous question. I couldn’t delete the
previous one. Hence posting again.
When it happens to be http traffic proxy server works but doesn’t work
for
the https. I pasted both the sevrer configurations below. Please look at
proxy_pass directive.
server {
listen 8080;
location / {
resolver 8.8.8.8;
proxy_pass https://$http_host$uri$is_args$args; // Works
}
server {
listen 8090;
location / {
resolver 8.8.8.8;
proxy_pass https://$http_host$uri$is_args$args; // Doesn’t work
}
Posted at Nginx Forum: