give access after proxy_pass
March 25, 2020 11:37AM
Hello
I have this simple setting :
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 /FirstPage.html {
#proxy_set_header Host $http_host$request_uri;
proxy_pass http://172.16.254.120/;
#proxy_read_timeout 120s;
#access_log on;

}

location /error.html {
internal;
}

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

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


now , when I enter FirstPage.html - he redirect me to 172.16.254.120
but when I want to enter other pages after it - I get error message
"The pgae you are looking for is not found "
how to fix this?
what I need to add to allow me to work in 172.16.254.120?

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

Click here to login

Online Users

Guests: 233
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