1

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?

2 Answers 2

2
ServerAlias *.ape.stream.local
1

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.

20
  • I can't seem to get it to work. Can you paste like a full solution? Sep 24, 2011 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, 2011 at 21:29
  • stream.local works fine Sep 24, 2011 at 21:45
  • 0.ape.stream.local works fine Sep 24, 2011 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, 2011 at 3:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .