Hello,
I would like to ask if it is possible to enable reverse proxy in Plesk for a subdomain.
That is, for example, autodiscover.domain.de forwarding another server than Plesk (Exchange Server).
"Proxy mode " is enabled and the following was entered:
location / {
proxy_pass http://192.168.178.90:80;
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;
proxy_set_header X-Forwarded-Host $server_name;
}
Error message:
Invalid nginx configuration: nginx: [emerg] duplicate location "/" in /var/www/vhosts/system/autodiscover.domain.de/conf/vhost_nginx.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed
Can someone help me please?
I would like to ask if it is possible to enable reverse proxy in Plesk for a subdomain.
That is, for example, autodiscover.domain.de forwarding another server than Plesk (Exchange Server).
"Proxy mode " is enabled and the following was entered:
location / {
proxy_pass http://192.168.178.90:80;
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;
proxy_set_header X-Forwarded-Host $server_name;
}
Error message:
Invalid nginx configuration: nginx: [emerg] duplicate location "/" in /var/www/vhosts/system/autodiscover.domain.de/conf/vhost_nginx.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed
Can someone help me please?
Last edited by a moderator: