Welcome! Log In Create A New Profile

Advanced

reverse proxy

July 19, 2023 08:34AM
Hi,

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:
https://www.digitalocean.com/community/tools/nginx?domains.0.server.domain=xyz.hu&domains.0.server.documentRoot=&domains.0.server.wwwSubdomain=true&domains.0.server.redirectSubdomains=false&domains.0.php.php=false&domains.0.reverseProxy.reverseProxy=true&domains.0.reverseProxy.proxyPass=http%3A%2F%2F192.168.111.100%3A443&domains.0.routing.fallbackHtml=true&domains.0.logging.redirectAccessLog=true&domains.0.logging.redirectErrorLog=true&global.performance.gzipCompression=false&global.logging.errorLogEnabled=true
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: 101
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready