#1 (permalink)  
Old 06-10-2009, 05:18 PM
Registered User
 
Join Date: Dec 2005
Posts: 29
zelf is on a distinguished road
Thumbs down ServerAlias and ServerName are Backwards in httpd.conf

The ServerName should be "www.domain.tld"
The ServerAlias should be "domain.tld"

Why is every account setup as ServerName "domain.tld" and ServerAlias "www.domain.tld"? This means that if someone just types in domain.tld without the "www" they will get a cpanel screen rather than your site.

How can this be changed???? I have looked at several threads with no answer. If you know where the thread is that fixes this absolutely please point me to it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-11-2009, 11:32 AM
Registered User
 
Join Date: Jul 2005
Location: New Jersey, USA
Posts: 385
PlatinumServerM is on a distinguished road
The ServerName does not include the www. It's the ServerAlias that does include the www in it. That virtualhost will respond to whatever is in the ServerName and the ServerAlias line the same way.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-11-2009, 03:24 PM
Registered User
 
Join Date: Dec 2005
Posts: 29
zelf is on a distinguished road
When http.conf reads

ServerName domain.tld
ServerAlias www.domain.tld

and a user types in domain.tld they get a cPanel default screen. When the user types www.domain.tld they get the website. How do I change httpd.conf permanently so that it reads:

ServerName domain.tld
ServerAlias *.domain.tld

or has the behavior of when a user types in either domain.tld or www.domain.tld they get the website and not the default cPanel screen.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-12-2009, 10:28 AM
cpanelkenneth's Avatar
cPanel Quality Assurance
 
Join Date: Apr 2006
Posts: 3,222
cpanelkenneth is on a distinguished road
From your initial post it sounds like you have something else ( configuration maybe ) causing the issue. Please open a support ticket and our techs will gladly help you sort the issue.
__________________
cPanel Kenneth
cPanel QA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-13-2009, 10:49 AM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
Lightbulb

I agree with cpanelkenneth on this one as what you describe is not typical
normal behavior and you definitely have something else going on here.

Normally on any cpanel system, both the base domain and the "www."
will BOTH reach the very same web address.

It's just a guess here but I'm thinking you might have a DNS issue instead
of an Apache configuration issue although it could be centered in Apache.

Are you using CNAME or A records in your DNS zones?

Anyway, if you can't solve it from this information, I would suggest either
opening up a support ticket with Cpanel or your server host provider or
contacting me or one of the other server administration specialists that
hang around this place to give you a hand with that particular issue.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-15-2009, 01:21 AM
Registered User
 
Join Date: Dec 2005
Posts: 29
zelf is on a distinguished road
Maybe it is the DNS. I am not using my server for DNS. I am using a 3rd party to handle name server services. Yes my domain.tld is an A record. Because I am not using DNS and have it disabled on my server how do I fix this issue?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using www. in ServerName - httpd.conf ? trevHCS cPanel and WHM Discussions 1 08-20-2008 01:22 PM
ServerName and ServerAlias values reversed in httpd.conf when adding new account mwmconsulting cPanel and WHM Discussions 5 11-12-2007 04:55 PM
ServerName and ServerAlias swapped over in httpd.conf :( girishn cPanel and WHM Discussions 0 09-07-2007 08:11 AM
Addon Domain Problem - Serveralias not added to httpd.conf mydomain cPanel and WHM Discussions 3 11-23-2004 06:57 PM
addon domains, swap servername/serveralias rmj cPanel and WHM Discussions 0 03-01-2003 03:53 PM


All times are GMT -5. The time now is 07:01 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc