No matching DirectoryIndex (index.html,index.php) found

Issues related to configuring your network
Post Reply
wp.rauchholz
Posts: 133
Joined: 2016/11/20 11:58:45

No matching DirectoryIndex (index.html,index.php) found

Post by wp.rauchholz » 2017/12/13 20:37:58

I am trting to install a new service on my server (I changed recently config to virtual host setup). I get his message. I looked in google, but cannot find a solution.
No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive

In the document root /var/www/<mydomain>/html contains .htaccess (Options +FollowSymLinks, RewriteEngine On), inpex.html and index.php file

This is the definition of my available site.
<VirtualHost *:80>
ServerName <www.mydomain>
ServerAlias <mydomain>
DocumentRoot /var/www/<www.mydomain>/html
ErrorLog /var/www/<www.mydomain>/error.log
CustomLog /var/www/<www.mydomain>/requests.log combined
</VirtualHost>

What is wrong?

Wolfgang

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: No matching DirectoryIndex (index.html,index.php) found

Post by pjsr2 » 2017/12/14 20:54:45

Please post the output of:

Code: Select all

ls -alZ /var/www/<mydomain>/html
Did you check for error messages in /var/log/messages and the log files in /var/log/httpd/ directory?

Post Reply