No matching DirectoryIndex when checking http to https option

Reported by: Amine
Created: 10 months 20 days ago
Views: 259

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

Join our Discord server
Write a reply Edit a reply