View Full Version : Subdomain wildcard
Paul-OQO
10-30-2007, 06:01 PM
Hello,
How can I configure the listener to listen on all the subdomains of a domain. I'm still running other domains on the same IP, so I don't want it to handle all the unknown domains.
I tried putting in *.domain.com into the listener but it's not working.
Any suggestions?
Thanks.
felosi
10-30-2007, 06:41 PM
so you are not using apache config?
You also have to add this to dns, an a entry for *
And server alias in whatever config you are using to *.site.com
Paul-OQO
10-30-2007, 06:55 PM
so you are not using apache config?
You also have to add this to dns, an a entry for *
And server alias in whatever config you are using to *.site.com
Nope, I'm not using an Apache config. I'm configuring VirtualHosts right from the webserver interface.
My DNS is already correctly setup to handle wildcards. The problem is that when it gets to the webserver, it does not properly get routed to the right virtualhost.
I've tried using *.domain.com for the server name of the virtual host and it DID forward all subdomains to the right virtual host, except "www." and the root. So that didn't work. Unless it's some kind of bug.
Paul-OQO
10-30-2007, 07:40 PM
Alright, I think I fixed it,
I just put the following lines in the listener: domain.com, www.domain.com, *.domain.com
And it didn't work if I had used another order!
mistwang
10-31-2007, 09:18 AM
Since LSWS ignore the leading "www.", www.domain.com in the list is optional, but it does not hurt having it there. The order of the list should not matter.