Welcome! Log In Create A New Profile


reverse proxy

July 19, 2023 08:34AM

I need to serve some domains behind one IP address. I try to set up a reverse proxy for it. I use a tool to generate the necessary configuration files. Here is a link with an example configuration:
My problem is with it that the reverse proxy tries to serve files from locally (interestingly not all, the browser shows the pure html page), not from the backend server.
As I noticed, the root directive gives the local path, but when I remove the roor option, the problem still exists, but with /usr/share/nginx path.
How can I set up nginx to not try to serve files from local path, but from the server I specifie in the proxy_pass option?
Subject Author Posted

reverse proxy

pischta July 19, 2023 08:34AM

Re: reverse proxy

pischta July 19, 2023 02:49PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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