Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am looking for a special configuration for Apache (and eventually NGinx) to allow to map all but one host as a ServerAlias to a specific VHost configuration.

For example, my current setting is:

  ServerAlias *.dertermin.com 

Basically catching all subdomains of determin.com and routing them to the docroot. However, I want a specific hostname eg. prerelease.dertermin.com to point to another docroot. Yet creating a separate VHost entry does not work. Is there a way around this?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Make sure your more specific prerelease rule is above the catchall rule as the Apache configuration is processed.

Apaches conf.d directory is processed in lexographic order.

share|improve this answer
I have tried this as the very first thing ;-) unfortunately this does not help :( –  clops Feb 21 '12 at 15:26
@clops Should work.. what output do you get from apache2ctl -S? –  Shane Madden Feb 21 '12 at 16:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.