youds
Verified User
Hi
I'm working with nginx_apache and am modifying "nginx.conf proxy" under "Custom HTTPD Configurations". I'm following a guide, that is supposed to be legit (I paid for it to be written) but it isn't behaving as expected.
Basically, under the "Customize" button there is supposed to be the following entered:
However it throws this error:
Looking at the nginx conf I can see that yes indeed there is another Location / block but I don't know how to remove it just for this domain.
Can anybody help?
Kind regards
I'm working with nginx_apache and am modifying "nginx.conf proxy" under "Custom HTTPD Configurations". I'm following a guide, that is supposed to be legit (I paid for it to be written) but it isn't behaving as expected.
Basically, under the "Customize" button there is supposed to be the following entered:
Code:
#DO_NOT_REMOVE_ME This removes redundant proxy to apache later in
|?NGINX_REDIRECTS=|
location /
{
proxy_pass http://domain.tld:XXXX;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
However it throws this error:
Code:
nginx: [emerg] duplicate location "/" in /usr/local/directadmin/data/users/repocode/nginx.conf:31
nginx: configuration file /etc/nginx/nginx.conf test failed
Looking at the nginx conf I can see that yes indeed there is another Location / block but I don't know how to remove it just for this domain.
Can anybody help?
Kind regards