Welcome! Log In Create A New Profile

Advanced

Re: 404 Error

Francis Daly
January 16, 2019 06:34PM
On Wed, Jan 16, 2019 at 01:20:14PM -0500, petrosetta wrote:

Hi there,

> 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?

You seem to be suggesting that you can successfully access
http://devserver/dev/something by going through nginx, but you cannot
successfully access http://devserver/something by going through nginx.

Is that correct?

If so, the answer is something like

location / { proxy_pass http://devserver; }

or maybe

location ~ thing { proxy_pass http://devserver; }

You need to decide what requests you want nginx to send to the upstream
devserver, and configure location{}s accordingly.

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 289
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