Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Trying to get these two vhosts set up correctly. I have two sites on this domain that i'm hosting: and

How do I get both of these to work in my vhost definitions?

I have:

$HTTP["host"] == "" {


$HTTP["host"] =~ "(^|.)$" { (I think this is for *

It always goes to the second one, even if I am trying to go to I need to be able to host and

share|improve this question
up vote 1 down vote accepted

Try swapping them. The last match wins.

share|improve this answer

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.