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.

I have viewed my httpd.conf and apache2.conf and I have no AllowOverride directive in either of the files.

The .htaccess works fine. I have a bunch of rewrites in it, so I know it works.

Is apache2 by default set to "AllowOverride All"?

Anybody know if I should add this? Or if it would hurt to add it?

The reason for all this is that I get a bunch of errors in my apache2 error log.

Thanks

share|improve this question

migrated from stackoverflow.com Oct 30 '10 at 6:37

This question came from our site for professional and enthusiast programmers.

    
What are the errors you get in your log? –  Cfreak Oct 29 '10 at 21:52
    
See this Q: serverfault.com/questions/196323/… –  Anonymous12345 Oct 29 '10 at 21:53
add comment

1 Answer 1

up vote 2 down vote accepted

It is not an issue of AllowOverride(yes, Apache's default is All)
It's simply a logging of the fact, that a file was'nt found, an 404-error. You should find the same entry inside the access_log.

If you don't have further problems with this logging(maybe your space is rare, so you have to avoid it), you could leave it as it is. If you don't want errors of the level "error" to be logged, you can modify the log-level inside httpd.conf. Find the line starting with LogLevel . Change the following word(maybe: warn, error, notice, info, debug) to crit ->then restart the server.

But do this only if you have good reasons, because if you do this you don't get any error-level-errors logged in the future, and there are more errors than missing files.

Regarding to the question how to add AllowOverride: you can put these directives onto httpd.conf inside every <directory/>-Section. For example:

<directory "path/to/htdocs">
#some stuff
AllowOverride None
#more stuff
</directory>
share|improve this answer
    
So basically, if its working, I shouldn't care about those errors? Even though they are very irritating... –  Anonymous12345 Oct 30 '10 at 9:33
add comment

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.