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

I have a domain like

The 0 increments up to an infinite number.

How do I go about making any number (* go to same place?

share|improve this question
ServerAlias *
share|improve this answer

You pretty much have the answer in your post. You are looking to setup a "wildcard" which will point any (*) subdomain to the same location.

You will need to set this up on the DNS level along with the web server level.

For DNS simply point * -> webserverip or cluster ip

At the Webserver depending on which flavor you are using (Apache or IIS) you can either setup a wildcard subdomain to serve the traffic or you can setup individual configurations for each subdomain depending on your needs.

share|improve this answer
I can't seem to get it to work. Can you paste like a full solution? – Elliot Lings Sep 24 '11 at 20:00
At which level are you having issues getting the configuration to work? The DNS level or the Apache level? – Dave Sep 24 '11 at 21:29
stream.local works fine – Elliot Lings Sep 24 '11 at 21:45 works fine – Elliot Lings Sep 24 '11 at 21:45
That configuration is correct it sounds likely you are still having issues with DNS though. The reason the two domains work that you described above is because they are in the local host file. You have to setup your DNS to point the wildcard domain to the webserver's IP in order for your configuration to work – Dave Sep 25 '11 at 3:50

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.