|
|||
|
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. |
|
|||
|
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.
|
|
|||
|
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. |
|
||||
|
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.
__________________
My Server Expert: Server support, security, and management! |
|
|||
|
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?
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |