Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Dec 06, 2025, 05:28 AM

Title: [BUG] nginx shows configuration error in Plesk: "proxy_read_timeout" directive
Post by: Suhitha on Dec 06, 2025, 05:28 AM
Question: [BUG] nginx shows configuration error in Plesk: "proxy_read_timeout" directive is duplicate


Applicable to:



Symptoms


[emerg] "proxy_read_timeout" directive is duplicate in /var/www/vhosts/system/example.com/conf/vhost_nginx.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed

when


The max_execution_time value is customized at Domains > example.com > PHP Settings (Reset to Default option is shown):

(https://pix.cobrasoft.org/images/2025/12/06/Screenshot_2020-03-27_PHP_Settings_for_example_com_-_Plesk_Obsidian_18_0_23.png)


# plesk repair web
...
Template_Exception: nginx: [emerg] "proxy_read_timeout"
directive is duplicate in
/var/www/vhosts/system/example.com/conf/vhost_nginx.conf:2
nginx: configuration file /etc/nginx/nginx.conf test failed


Cause

Product issue:


     

Resolution

Please consider updating your server:

How to install Plesk updates


Workaround

1.Log in to Plesk.

2.Apply one of the following steps to remove the duplicate directive:

Note: If there are a lot of domains with both directives customized, see the command-line instructions below.

3.Go to Tools & Settings > Webserver Configurations Troubleshooter

4.Click the mceclip1.png button > Set the Status filter to Error from the drop-down menu.

(https://pix.cobrasoft.org/images/2025/12/06/mceclip1-8.png)


5.The list of broken configuration files will appear. Select all and click Rebuild > Selected.


Disabling proxy_read_timeout for all domains via a command-line interface


1.Connect to the Plesk server via SSH.

2.Disable proxy_read_timeout for all domains with the command:

# grep -rl "proxy_read_timeout" /var/www/vhosts/system/*/conf/ | xargs sed -i 's/proxy_read_timeout/#proxy_read_timeout/g'

3.Repair web-server configuration:

# plesk repair web -y