- Plesk for Linux
Cannot disable Proxy Mode and add a nginx directive containing "location /" in Domains > example.com > Apache & nginx Settings simultaneously:
PLESK_ERROR: Invalid nginx configuration: nginx: [emerg] duplicate location "/" in /var/www/vhosts/system/example.com/conf/vhost_nginx.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed
This is a Plesk bug with ID PPPM-9841 which is planned to be fixed in future product updates.
As a workaround:
Open Domains > example.com > Apache & nginx directives.
Disable Proxy Mode.
Insert the necessary directives in Additional nginx directives.