Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
08-29-2011, 05:40 PM #1
- Join Date
- Apr 2003
- Thanked 13 Times in 13 Posts
htaccess under different virtualhosts
my httpd.conf looks something like this:
<VirtualHost *> ServerName * DocumentRoot /var/www </VirtualHost> <VirtualHost *> ServerName example.com DocumentRoot /var/www </VirtualHost> <VirtualHost *> ServerName subdomain.example.com DocumentRoot /var/www/subdomain </VirtualHost>
However, it seems to just ignore it. I've tried adding the contents of the .htaccess directly into the virtualhost in httpd.conf and restarting apache but it didn't work there either.
It does work fine if I go to example.com/subdomain
How can I get it to use the .htaccess when under this subdomain?
(Apache 2.2 under Debian)
Last edited by ghell; 08-29-2011 at 06:50 PM.