Background and Context
We create multiple subdomains and proxy pass them to a local running web application.
E.g. We have app.host.net and we want to configure it to pass all of the requests to localhost:8209.
We tried to add a server context and give proxy_pass to location /. We have noticed that whenever we customize the nginx.conf in [Server Manger > Custom HTTPD Configurations > (select nginx.conf for host.net) > Customize] it adds the customization to all of the subdomains.
We edited the nginx.conf locally after that, but whenever we add one more subdomain it automatically rewrites the nginx.conf.
- Version of directadmin: 1.650 (167f906b8837f25cee4da539830c8ecca7c650a2
- We want to use Nginx in our server.
- We have multiple application and subdomains, and we want to associate each subdomain to for each application.
- Applications are webapps running on local server.
We create multiple subdomains and proxy pass them to a local running web application.
E.g. We have app.host.net and we want to configure it to pass all of the requests to localhost:8209.
We tried to add a server context and give proxy_pass to location /. We have noticed that whenever we customize the nginx.conf in [Server Manger > Custom HTTPD Configurations > (select nginx.conf for host.net) > Customize] it adds the customization to all of the subdomains.
We edited the nginx.conf locally after that, but whenever we add one more subdomain it automatically rewrites the nginx.conf.