[CentOS] httpd .htaccess rewrite for images

Alan Sparks asparks at doublesparks.net
Tue Aug 18 04:18:23 UTC 2009


Dave wrote:
> In my httpd virtual host directive i have:
>
> alias /images "/var/www/test.example.com/images"
> <Directory "/var/www/test.example.com/images">
> Options None
> AllowOverride None
> order allow,deny
> Allow from all
> </Directory>
>
> Comments appreciated.
>   

Assume you mean that the rewrites are ignored.  Note that "AllowOverride
None" tells apache to completely ignore .htaccess files.
Either move your rewrite rules into the vhost container or consider
"AllowOverride FileInfo".
-Alan




More information about the CentOS mailing list