Symptoms
-
The site shows Apache default page:
The following error appears when opening a website:
403 Forbidden by nginx
-
The output of the following command is empty:
# ls -l /var/www/vhosts/example.com/httpdocs/ | grep index
Cause
There is no index file in the Document Root of the domain, or the expected file has a typo in the name.
Resolution
-
Go to Domains > example.com > File Manager and check if there is an index file of the website.
-
Create index file in the document root directory with required content or specify custom index file under Domains > example.com > example.com > Apache & nginx Settings > Common Apache settings > Index files for the existing one to be recognized:
Alternatively, specify the document root under Domains > example.com > Hosting Settings to point to the directory that contains the index file.