1

Hi,

When trying to access a directory with no index.html file it shows a forbidden error. It even ignores the index.php files. How can I fix this so the error is gone?

Thank you.

Cain Nuke
  • 2,515
  • 4
  • 35
  • 55
  • Did you read this http://stackoverflow.com/questions/19322345/how-do-i-change-the-default-index-page-in-apache? – rakwaht Mar 08 '17 at 15:02
  • I know how to do it with htaccess but I want to change it on the apache config so I dont need to create a htaccess file for each directory. – Cain Nuke Mar 08 '17 at 15:05
  • Then update your question asking precisely that – rakwaht Mar 08 '17 at 15:08
  • @CainNuke What do you exactly want? Do you want directory listing when index.html not available or you want to execute some other file? – Sahil Gulati Mar 08 '17 at 15:16
  • I want the server to show no forbidden error and show the index.php file if present. – Cain Nuke Mar 08 '17 at 15:41

1 Answers1

0

Did you try to create a default .htaccess file in your Apache configuration?

If not, give it a try. More info about it here and here.

rakwaht
  • 3,220
  • 1
  • 25
  • 42