I am configuring nginx for reverse proxy in RHEL 7 and here is my config.
server {
listen 8080;
server_name localhost.com;
location / {
proxy_pass https://server01.com:9443/landscaper;
root /usr/share/nginx/html;
proxy_redirect off;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "";
}
I have restarted the nginx service. But even after that the proxy is not working for me. Saying "webpage not available"
Kindly help.
TIA.
The Firewall is blocking the port 8080. So I have changed the port to 443 and tried restarting the nginx service. It is working now.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.