|
|||
|
Using www. in ServerName - httpd.conf ?
Is there any way to get WHM to edit the httpd.conf file and swap the ServerName and ServerAlias lines around as it seems to have changed this at some point...?
For example, in the httpd.conf it currently uses: ServerName example.com ServerAlias www.example.com ...which means if you call on $_SERVER['HTTP_HOST'] or $_SERVER['SERVER_NAME'] in PHP you get the non-www one. On older accounts these tend to appear as below, and on some they even appear with both in the alias line. ServerName www.example.com ServerAlias example.com If it's fixed in then I'm sure I'll work around it - no great problems. But thought I'd ask. Trev |
|
||||
|
In WHM when you list accounts, what do those domains show up as (www.domain.com or domain.com)
Check your /var/cpanel/templates/apache2/main.default and see what ServerName and ServerAlias is set to. Maybe try to rebuild your httpd.conf? Run: /usr/local/cpanel/bin/build_apache_conf Last edited by rkm11; 08-20-2008 at 12:24 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|