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

I have a domain like 0.ape.stream.local

The 0 increments up to an infinite number.

How do I go about making any number (*.ape.stream.local) go to same place?

share|improve this question

2 Answers 2

ServerAlias *.ape.stream.local
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 *.ape.stream.local -> 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
    
0.ape.stream.local works fine –  Elliot Lings Sep 24 '11 at 21:45
1  
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

 
discard

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.