nginx proxy_pass hang with OS using https_proxy
April 30, 2021 07:22AM
Hello,

I have a very simple setup like below, it will pass the request to google, this works fine on my local Linux machine, but when I use it on the OS that setup with system proxy: https_proxy, http:proxy, then It becomes hang, when I'm trying to access http://localhost.
Please help.
server {
listen 80;
server_name localhost;

#access_log /var/log/nginx/host.access.log main;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location /test {
proxy_pass http://google.com;
}
}

Thanks,
Devon
Re: nginx proxy_pass hang with OS using https_proxy
April 30, 2021 07:27AM
Hello,

I think nginx does not understand the OS system proxy, then It does not work. Then how to make ngxin read OS system proxy?

Thanks,
Devon VO
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 196
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready