No matching DirectoryIndex when checking http to https option

Reported by: Amine
Created: 5 months 22 days ago
Views: 236

Hello all,

I'm having this issue where, after installing let's encrypt on my main (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/ No matching DirectoryIndex (index.html,index.cgi,,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