Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Running Apache httpd 2.2.

httpd is complaining about the following:

# service httpd configtest
[Tue Sep 13 10:10:14 2011] [warn] Useless use of AllowOverride in line 50.

But when I look at httpd.conf, there is no 'AllowOverride' parameter at line 50. This is what I see near line 50 (Lefthand column shows the line numbers):

 48 # ServerLimit: maximum value for MaxClients for the lifetime of the server
 49 # MaxClients: maximum number of server processes allowed to start
 50 # MaxRequestsPerChild: maximum number of requests a server process serves
 51 <IfModule prefork.c>
 52 StartServers      30
 53 MinSpareServers   20
 54 MaxSpareServers   50

So, how can I find this cause of 'Useless use of AllowOverride'?

share|improve this question
    
Can you please post a full config or at least a part which contains all AllowOverrides? –  Alex Sep 13 '11 at 17:19
1  
It might not count comments as lines. –  Aaron Sep 13 '11 at 17:28
    
@Aaron And I bet it does not –  Alex Sep 13 '11 at 17:48
    
some other file maybe? –  rogerdpack Sep 13 '11 at 19:11
1  
Line 50 of an included config? (/etc/httpd/conf.d/) –  Aaron Copley Sep 14 '11 at 20:38

1 Answer 1

up vote 0 down vote accepted

I tried stripping out comments, and whitespaces from httpd.conf. No luck.

It seems that Apache is referring to one of the files in my conf.d directory, which is Include-ed from httpd.conf.

In the file conf.d/foo.conf I see the following at line 50:

49 <Location ~ "/foo">
50     AllowOverride None

And this certainly does conflict with a use of AllowOverride earlier in httpd.conf (AllowOverride None for Location \ ).

Very frustrating that this warning isn't more explicit.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.