Forum Moderators: phranque

Message Too Old, No Replies

Virtual Subdomains with some exceptions

         

cbichis

9:38 pm on Nov 20, 2009 (gmt 0)

10+ Year Member



Hi,

I am trying to make a virtual subdomains system on server with Apache 2.2.

All fine for this, works easy to setup, with a dns record as:
*.domain.com A x.x.x.x

And an Apache virtual host configuration having:

ServerName www.domain.com
ServerAlias *.domain.com domain.com

Until now all fine...

But, let's suppose i still need to have one subdomain been excepted by the virtual subdomains rule. Let's suppose i want to have a subdomain blog.domain.com to be excepted from this rule.

If i add a VirtualHost for this isn't taken into consideration.

I was wondering how to solve this problem....

jdMorgan

10:47 pm on Nov 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you add a blog.domain VirtualHost *before* the wild-card vHost, then that should work -- The server should take the first match.

Jim

cbichis

9:34 am on Nov 21, 2009 (gmt 0)

10+ Year Member



Thanks, i will try...