The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 RE: Virtual Hosts & Server Alias
Author: Philip Hallstrom 
Date:   14-07-00 17:38

Hmmm... what you're trying to do (foo.com and www.foo.com to same server) is really a function of your DNS (regardless of what IP/Name based hosting).

You need to make sure that the IP address of foo.com and the IP address of www.foo.com both point to the same IP address. Then using IP based hosting it should all work just fine...

for example, both adhesivemedia.com and www.adhesivemedia.com will get you to our website... DNS says:

philip@illiad:~% nslookup adhesivemedia.com
Server: illiad.i.adhesivemedia.com
Address: 10.1.0.8

Name: adhesivemedia.com
Address: 207.202.159.74

philip@illiad:~% nslookup www.adhesivemedia.com
Server: illiad.i.adhesivemedia.com
Address: 10.1.0.8

Name: illiad.adhesivemedia.com
Address: 207.202.159.74
Aliases: www.adhesivemedia.com

You then might need to redirect the mail (MX records) somewhere else if you don't want mail coming to the webserver as well, but again that's all DNS...

-philip



 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Virtual Hosts & Server Alias   new
Kevin G 13-07-00 10:27 
 RE: Virtual Hosts & Server Alias   new
Philip Hallstrom 14-07-00 03:28 
 RE: Virtual Hosts & Server Alias   new
Kevin G 14-07-00 07:32 
 RE: Virtual Hosts & Server Alias   new
Philip Hallstrom 14-07-00 17:38 
 RE: Virtual Hosts & Server Alias   new
Kevin G 16-07-00 07:14 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org