Bug 53444 - Errors when overriding Options Indexes in .htaccess
Summary: Errors when overriding Options Indexes in .htaccess
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.2
Hardware: Sun Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2012-06-20 17:24 UTC by Brad Hawks
Modified: 2012-07-13 20:16 UTC (History)
0 users



Attachments
HTTPD config file (17.33 KB, application/octet-stream)
2012-06-20 17:24 UTC, Brad Hawks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brad Hawks 2012-06-20 17:24:40 UTC
Created attachment 28973 [details]
HTTPD config file

I'm actually using version 2.4.2

I compiled this on a test machine to verify the errors I'm getting on a more complicated machine I'm upgrading to version 2.4.2

./configure \
    --prefix=/web/httpd-2.4.2 \
    --enable-ssl \
    --with-ssl=/local \
    --enable-rewrite \
    --enable-so 

With the attached httpd.conf

I create a test directory 
/web/httpd-2.4.2/htdocs/test

With .htaccess file
Options +Indexes

http://bohr.physics.utah.edu/test/ results in...

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@physics.utah.edu to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

The logs show...

[Wed Jun 20 11:09:23.709509 2012] [core:alert] [pid 23310:tid 1129789760] [client 155.101.100.21:52631] /web/httpd-2.4.2/htdocs/test/.htaccess: Option Indexes not allowed here

Hope you guys can help me sort this out.
Comment 1 Michał Grzędzicki 2012-07-06 22:23:49 UTC
in <Directory "/web/httpd-2.4.2/htdocs">

You already enable indexes
Options Indexes FollowSymLinks

so it should work without .htaccess.

Does changing

AllowOverride Options

to

AllowOverride Options=Indexes

or

AllowOverride Options Indexes

makes it work for You ?
Comment 2 Brad Hawks 2012-07-10 18:11:49 UTC
AllowOverride Options=Indexes ... This one fixes the problem

AllowOverride Options Indexes ... This one did NOT fix the problem

I was wondering if AllowOverride was confusing the core directive Options=Indexes with the mod_autoindex directive Indexes, but couldn't figure out a way to specify. I tried AllowOverrideList Indexes but that didn't work.

Guess I should read the documentation closer, I didn't see you could specify Options=

Thanks for the help!
Comment 3 Eric Covener 2012-07-10 18:24:20 UTC
Certainly looks busted here too
Comment 4 Eric Covener 2012-07-10 18:41:35 UTC
maybe related to https://issues.apache.org/bugzilla/show_bug.cgi?id=52824
Comment 5 Eric Covener 2012-07-11 02:08:26 UTC
http://svn.apache.org/viewvc?rev=1359976&view=rev and proposed for 2.4
Comment 6 Eric Covener 2012-07-13 20:16:51 UTC
will be in 2.4.3 and later