- Plesk for Linux
One or more websites intermittently show either of the following errors:
CONFIG_TEXT: 403 Forbidden
CONFIG_TEXT: 404 Not Found
Correct content is displayed for the website(s) when refreshing it in the browser.
The document root for the website was recently changed at Plesk > Domains > example.com > Hosting Settings to another location, for example, to
The following error can be observed in the domain's log file
CONFIG_TEXT: AH01276: Cannot serve directory /var/www/vhosts/example.com/httpdocs/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm,index.shtml) found, and server-generated directory index forbidden by Options directive
The webserver tries to parse the incorrect (old) document root due to stuck Apache/Nginx processes.
Connect to the server via SSH;
Restart both Apache and Nginx services:
# systemctl stop apache2 ; systemctl stop nginx
# systemctl start apache2 ; systemctl start nginx
# systemctl stop httpd ; systemctl stop nginx
# systemctl start httpd ; systemctl start nginx