Welcome! Log In Create A New Profile

Advanced

404 Error

January 16, 2019 01:20PM
Hi All
I have NGINX set up to pass requests to an upstream server. The home page and several other pages comes up just fine. However, when the users requests some reports that are in a directory just above the root directory on the upstream server, we get a 404 error from NGINX. Below are the relevant entries. We can see the reports when we bring up the site on the upstream server itself. Is there any way to get NGINX to see the reports in that directory?

upstream devserver {
server 192.168.1.22:80;
}


location /dev/ {
proxy_pass http://devserver;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 600s;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header Strict-Transport-Security "max-age=31536000;includeSubDomains" always;
}
Subject Author Posted

404 Error

petrosetta January 16, 2019 01:20PM

Re: 404 Error

Francis Daly January 16, 2019 06:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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