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



LinkBack URL
About LinkBacks
Reply With Quote




