[Sun May 17 05:22:43.313979 2020] [autoindex:error] [pid 1234:tid 140222558668] [client 9.1228.110.167:171311] AH01276: Cannot serve directory /home/***/***/***.com/private_html/: No matching DirectoryIndex (index.html,index.htm,index.shtml,index.php,index.phtml) found, and server-generated directory index forbidden by Options directive, referer: https://www.***.com/
Reason One:
Apache Error
By default Apache is configured with the following:
<IfModule dir_module> DirectoryIndex index.html </IfModule>
We have to change it to
<IfModule dir_module> DirectoryIndex index.html index.php </IfModule>
Adding index.php directive.
How to change?
Open httpd.conf
vi /etc/httpd/conf/httpd.conf
Change accordingly and then restart httpd
systemctl restart httpd
Reason Two:
Symbolink link error from private_html
“Use a symbolink link from private_html to public_html – allows for same data in http and https” instead of “Use a directory named private_html”