No matching DirectoryIndex when checking http to https option

Reported by: Amine
Created: 21 days ago
Views: 15

Hello all,

I'm having this issue where, after installing let's encrypt on my main domain.com (with redirect to www enabled) whenever I check the option of permanent 301 HTTP to HTTPS redirect, website is not working and I get this error in Apache error log :

AH01276: Cannot serve directory /var/www/domain.com/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive

And browser shows : "The page isn’t redirecting properly" message

Any idea on what I can do to fix this ? I know that editing apache.conf will get overwritten by tinycp

Write a reply Edit a reply