Drupal \\\"files\\\" directory access

Drupal \\\"files\\\" directory access

Drupal \\\"files\\\" directory access

Hey Guys!

Been playing around with the Drupal box and absolutely love it!

One quirk I just ran into is the settings in the .htaccess file in the /var/www/drupal/files/ directory. I uploaded some files with a node and wasn't able to access them after upload. I got a 500 error when trying to access the path directly. The Apache error log had this message for me:

[Fri Jun 08 22:22:57 2007] [alert] [client 192.168.1.12] /var/www/drupal/files/.htaccess: Options not allowed here

After some Googling, what I found was:

"The use of the Options directive in user .htaccess files is disallowed to prevent circumventing security, so you must remove any Options directives in your .htaccess files or the web server will deny access to those directories. Use of most other .htaccess directives is not restricted. The options granted to all users by default with our system configuration are"

So I commented out the 2 Options directives in the .htaccess file, restarted Apache and things look good. Do you see a problem with this solution?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.