httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kees Nuyt <k.n...@zonnet.nl>
Subject Re: [users@httpd] Strange with AllowOverrideList Directive
Date Tue, 29 Mar 2016 16:41:11 GMT
On Tue, 29 Mar 2016 15:06:50 +0600, you wrote:

>Hello!
>
> I trying to completely disable of .htaccess.
> I have this in httpd.conf:
> <Directory />
>        Options FollowSymLinks
>        AllowOverride None
>        Require all denied
> </Directory>
>
> Also, i have this in vhost include file:
> <Directory "/var/www/development">
>    Options FollowSymLinks
>    AllowOverride None
>    AllowOverrideList None
>    Require all granted
> ....CUT...
> </Directory>
>
> Directory /var/www/development still contain .htaccess files as i do
> not want to remove them.
>
> Documentation https://httpd.apache.org/docs/2.4/mod/core.html#allowoverride
> says:
> "When this directive is set to None and AllowOverrideList is set to
> None .htaccess, files are completely ignored. In this case, the server
> will not even attempt to read .htaccess files in the filesystem."
>
> But when i open my vhost, i get 500:
> [Tue Mar 29 01:27:12.868576 2016] [core:alert] [pid 9361:tid [client
> 192.168.1.1:58722] /var/www/development/.htaccess: ErrorDocument not
> allowed here
> As first line of my .htaccess start with ErrorDocument.
>
> And also, any subdirectories that contains .htaccess is failed with 500.
>
> As i see, this is mismatch in documentation?

Looks like a bug to me. I wouldn't call it a ducumentation bug,
as totally ignoring .htaccess is what one would want to do,
because it (also) has performance advantages.

As a workaround, you could change the access file name httpd is
looking for,  as in:
https://httpd.apache.org/docs/2.4/mod/core.html#accessfilename

, and .htaccess will not be read anymore.

-- 
Regards,

Kees Nuyt


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message