Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: First time - reverse proxy on oracle linux

$
0
0
I google and found this

server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;

# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;

location /172.16.5.26/{
proxy_set_header Host $http_host$request_uri;
proxy_pass http://172.16.5.26:80/;
proxy_read_timeout 120s;
access_log on;
}
location / {
}


error_page 404 /404.html;
location = /40x.html {
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}


but now the nginx is not working at all - can'y load

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>