Current time: 05-18-2024, 01:19 AM Hello There, Guest! (LoginRegister)


Post Reply 
Wildcard dns
Author Message
Kika Offline
Member
***

Posts: 293
Joined: Feb 2007
Reputation: 8
Post: #4
RE: Wildcard dns
You just modified the DNS, but you forgot to redirect the all subdomain to http://www.mydomain.com. You must modify the apache settings to:

Code:
# NameVirtualHost ...:80
<VirtualHost ...:80>
    ServerName www.mydomain.com
    # This is your main domain
</VirtualHost>

<VirtualHost .....:80>
    ServerName mydomain.com
    ServerAlias *.mydomain.com
    # This is to make sure that foo.mydomain.com gets redirected too
    # If you want to use more virtual hosts on subdomains,
    # just define them earlier
    Redirect / http://www.mydomain.com/
</VirtualHost>
11-24-2011 07:55 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Wildcard dns - Jillian - 11-11-2010, 05:32 AM
RE: Wildcard dns - Kika - 11-16-2010, 07:40 PM
RE: Wildcard dns - hawara - 11-24-2011, 07:32 PM
RE: Wildcard dns - Kika - 11-24-2011 07:55 PM
RE: Wildcard dns - hawara - 11-24-2011, 07:58 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)