logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Stop 2.4 reading the .htaccess file
Author
nigelfo



Joined: 17 Feb 2016
Posts: 1
Location: Uk, London

PostPosted: Wed 17 Feb '16 21:15    Post subject: Stop 2.4 reading the .htaccess file Reply with quote

How to stop Apache 2.4 reading htaccess in the root of my website (the opposite of most problems with this file...!)

The docs say:

"When this directive [AllowOverrideList] is set to None and AllowOverride is set to None, then .htaccess files are completely ignored. In this case, the server will not even attempt to read .htaccess files in the filesystem."

I get 500 errors as the directive in htaccess are now disallowed - which is kinda correct, but it should not even be *trying* to read the file.

I have the above directives in all the default places in httpd.conf, eg:

<Directory />
AllowOverride None
AllowOverrideList None
</Directory>

and also, just to be sure my website root:
<Directory /var/www/html/my_website>
...

I've looked for any lower level directories that might be overriding this (as I understand it this will cause Apache to walk "up" the tree)

So, how to find what is causing Apache to still read this file? It says this is a performance hit, so I'd like to turn it off!

Thanks!
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Thu 18 Feb '16 1:40    Post subject: Re: Stop 2.4 reading the .htaccess file Reply with quote

Sounds like a bug to me.
Back to top


Reply to topic   Topic: Stop 2.4 reading the .htaccess file View previous topic :: View next topic
Post new topic   Forum Index -> Apache