Apache 2.2/Ubuntu 7.2 doesn't allow Indexes and FollowSymLinks in .htaccess

Yuan

Joined: 2003-12-03
Posts: 144
Posted: Sun, 2007-08-05 09:36

Immediately after Apache2/Ubuntu 7.2 started to process gallery/.htaccess (http://gallery.menalto.com/node/67706#comment-245518), it threw out 500 error. error_log records ".htaccess: Option Indexes not allowed here" and if I remove -Indexes from .htaccess, I get ".htaccess: Option FollowSymLinks not allowed here". This is the same situation described in http://gallery.menalto.com/node/2447#comment-7846.

1) To make Gallery functional: comment out the entire line from gallery/.htaccess
2) To make Gallery perform rewrite trick: add content of gallery/setup/php_value_ok.php into config.php.
3) If you want to use Configuration Wizard, also comment out the Options line from gallery/setup/.htaccess.

The caveat is: the next time Configuration Wizard is run, it'll add "Options -Indexes +FollowSymLink" back. So in order to make the settings to completely work,
4) hack gallery/setup/mod_rewrite.template to remove them.

Now the question: Why does Apache 2.2.3 disallow these options even if AllowOverride is set to All?

Also, giving up FollowSymLinks is a bit too much of a sacrifice for me. Therefore,
5) Make sure Indexes is off, and enable FollowSymLinks in main server configuration if necessary. (I don't believe that Gallery requires this.)

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://solid77.doodle22.com:8080/?newlang=en_US
Gallery version: 1.5.2-pl2
Apache version: Apache/2.2.3 (Ubuntu) PHP/5.2.1
PHP version (don't just say PHP 4, please): PHP/5.2.1
Graphics Toolkit: NetPBM
Operating system: Linux 2.6.20-15-server
Web browser/version (if applicable): N/A

 
Talen

Joined: 2005-12-15
Posts: 9
Posted: Sat, 2007-09-22 05:27

It sounds like apache's conf file is set to not allow overrides anywhere. Check httpd.conf, and depending on the configuration, check any other conf files in apache's directory. It may be loading more than just httpd.conf, and you may have something in the other conf files disabling overrides.