0

I tried to allow access to a directory by using the .htaccess file. This is my .htaccess:

<Directory Bilder_Team>
   Options Indexes FollowSymLinks
   AllowOverride None
</Directory>

The directory is "Bilder_Team". If I open the link to this directory, it shows me

500 Internal Server Error

How can I fix this?

Dimitar
  • 4,402
  • 4
  • 31
  • 47
Hemran
  • 45
  • 5

1 Answers1

2

Use this htaccessCheck for future checks or problems. Your problem as you could see, once checked, is that you are not allowed tags such as <Directory> in .htaccess files.

Instead put the .htaccess directly into the Build_Team directory and leave off the surrounding tags.

Possibly, a bigger problem is the use of AllowOverride None, which disables the use of .htaccess files and, obviously, has no part of any .htaccess file. AllowOverride directive can only be part of the main config file!

As shown the snippet is correct iff put in the httpd.conf file (name could vary). Which actually, if possible, is the better way to do it.

For more information about security concerns, you could refer to this StackOverflow answer.

Hope this helps!

Community
  • 1
  • 1
Dimitar
  • 4,402
  • 4
  • 31
  • 47