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?