Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-29-2011, 04:40 PM   PM User | #1
ghell
Senior Coder

 
Join Date: Apr 2003
Location: England
Posts: 1,192
Thanks: 5
Thanked 13 Times in 13 Posts
ghell is on a distinguished road
htaccess under different virtualhosts

my httpd.conf looks something like this:

Code:
<VirtualHost *>
  ServerName *
  DocumentRoot /var/www
</VirtualHost>

<VirtualHost *>
  ServerName example.com
  DocumentRoot /var/www
</VirtualHost>

<VirtualHost *>
  ServerName subdomain.example.com
  DocumentRoot /var/www/subdomain
</VirtualHost>
I want to make a /var/www/subdomain/.htaccess and have it work on subdomain.example.com.

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)
__________________
My tech/code blog

Last edited by ghell; 08-29-2011 at 05:50 PM..
ghell is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:15 AM.


Advertisement
Log in to turn off these ads.