Score:1

Apache return corrcect page but with status "403 Forbidden"

cn flag

Apache returns the correct page, everything works but for the root document "/" it shows status 403 Forbidden. The browser still shows the page, just the status code is wrong.

Only for root "/", every other document is fine.

The problem appeared after I changed:

RewriteRule !\.(avi|css|doc|flv|gif|gzip|ico|jpeg|jpg|js|mov|mp3|pdf|png|ppt|rar|swf|txt|wav|wmv|xml|zip)$ /cms/front_content.php [NC,QSA,L]

to

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^.*$ /cms/front_content.php [QSA,L]

Apache/2.4.38 (Debian). Webroot has Require all granted.

error.log

Cannot serve directory /var/www/clients/client1/web1/web/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm,index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm,standard_index.html) found, and server-generated directory index forbidden by Options directive

If I create a index.php in the root it shows the index.php but that is not the correct page.

Does someone know how to fix this?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.