Hi, I need to configure some ports for an app
location / {
location /home/ {
proxy_pass http://127.0.0.1:8080; proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
I noticed that in the WebuzoVH.con file, there is an include file that contains directives such as location /
include /usr/local/apps/nginx/etc/conf.d/common;
When I comment it out, my app runs without issue, but otherwise, it won't open.
Is there a way to prevent that line from being included or to make an exception when the file WebuzoVH.con is regenerated?
Thanks
IP: --
Problem with WebuzoVH.conf and Extra configuration
>>I noticed that in the WebuzoVH.con file, there is an include file that contains directives such as location /
Sir, please do not change/modify the WebuzoVH.con file from /usr/local/apps/nginx/etc/conf.d/ directory as this file contains important webserver configuration and it gets rebuilt, so the changes done by you will be reverted to the default conf.
If you want to add a custom configuration, you can refer to the guide:
https://webuzo.com/docs/developers/custom-virtualhost-config/