The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> System Administration
> DNS
|
configure server to load site with "www" or not?
Discuss configure server to load site with "www" or not? in the DNS forum on Dev Shed. configure server to load site with "www" or not? DNS forum discussing issues, servers, and configurations. The Domain Name System (DNS) is what the Internet uses to translate website names into IP addresses.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

August 30th, 2002, 08:53 AM
|
|
Contributing User
|
|
Join Date: Mar 2001
Posts: 52
 
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
configure server to load site with "www" or not?
i'm running iplanet on a sun server... how do i configure the server so the website will load whether or not "www" is in the address?
i.e. www.website.com or website.com would load the site. presently, only www.website.com works.
thanks
|

August 31st, 2002, 05:21 AM
|
|
Contributing User
|
|
Join Date: Jan 2001
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
First off I don't know anything about iplanet. As far as the Apache way, you can set
Code:
ServerName www.website.com
ServerAlias website.com
For the DNS way create an A record for website.com to point to the same IP address as www.website.com and given www.website.com is the default site of your iplanet server.
|

September 1st, 2002, 02:59 AM
|
|
Contributing User
|
|
Join Date: Nov 2000
Location: San Jose, CA
Posts: 58
Time spent in forums: 1 h 14 m 9 sec
Reputation Power: 13
|
|
|
Possible Help
I like FreeBSD do not know iplanet, but if you are usin bind then all you have to do is make sure the www and . entry are pinting to the same ip/webserver. That is half of the problem solved, you will just have to add a virual host in Iplanet and point it to the same directory.
Hope this helps. :0)
|

September 27th, 2002, 12:38 PM
|
|
Contributing User
|
|
Join Date: Aug 2000
Location: Los Gatos, CA
Posts: 42
Time spent in forums: 56 m 57 sec
Reputation Power: 13
|
|
|
domain.com. IN A 192.168.0.1
www CNAME domain.com.
|

September 27th, 2002, 06:27 PM
|
|
Contributing User
|
|
Join Date: Oct 2001
Posts: 310
Time spent in forums: < 1 sec
Reputation Power: 12
|
|
Quote: Originally posted by chovy
domain.com. IN A 192.168.0.1
www CNAME domain.com. |
No, there's no such of CNAME.. Use IN A record instead CNAME.
domain.com. IN A 192.168.0.1
www.domain.com. IN A 192.168.0.1
|

September 30th, 2002, 11:39 AM
|
|
Contributing User
|
|
Join Date: Aug 2000
Location: Los Gatos, CA
Posts: 42
Time spent in forums: 56 m 57 sec
Reputation Power: 13
|
|
|
sorry,
www IN CNAME domain.com.
works for me.
|

October 7th, 2002, 09:05 AM
|
|
Contributing User
|
|
Join Date: Jan 2001
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
>> works for me
It works for you but it doesn't always work for others who query your nameservers. If you want to increase the reliability just don't use CNAME from now on.
|

October 7th, 2002, 11:17 AM
|
|
Contributing User
|
|
Join Date: Aug 2000
Location: Los Gatos, CA
Posts: 42
Time spent in forums: 56 m 57 sec
Reputation Power: 13
|
|
|
...all the documentation talks about cname, why is it unreliable? I've never read any info about this.
|

October 7th, 2002, 11:37 AM
|
|
Contributing User
|
|
Join Date: Jan 2001
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
here and here and if you search google, the are dozen more.
|

October 20th, 2002, 10:24 PM
|
|
Contributing User
|
|
Join Date: Sep 1999
Posts: 52
Time spent in forums: < 1 sec
Reputation Power: 14
|
|
I wish more people would remember to include the non-www entries. It astounds me how many times I find large/successful/commercial sites that do not, and trying to access domain.com instead of www.domain.com gives a "host not found" error..
sloppy sloppy....
|

October 21st, 2002, 11:17 AM
|
|
Contributing User
|
|
Join Date: Aug 2000
Location: Los Gatos, CA
Posts: 42
Time spent in forums: 56 m 57 sec
Reputation Power: 13
|
|
as to the www. not being implemented...can't you have this done at the apache level too?
by adding the ServerAlias directive?
ServerName domain.com
ServerAlias www.domain.com
would you also need a www. dns record in addition to this?
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|