This is a discussion on http://www works http:// doesn't how to get both? within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, On my domain http://www.domain.com works but http://domain.com doesn't. If I change the ServerName ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
On my domain http://www.domain.com works but http://domain.com doesn't. If I change the ServerName in the apache 2 conf file from ServerName www.domain.com to ServerName domain.com It works but then http://www.domain.com doesn't work if I do ServerName www.domain.com ServerName domain.com It then only allows http://domain.com. How can I get both working any ideas? Thanks Gary Mayor |
|
|||
|
"Gary Mayor" <gary@abertron.co.uk> wrote in message news:c02t4r$75i$1@news6.svr.pol.co.uk... > ServerName www.domain.com > ServerName domain.com > > It then only allows http://domain.com. How can I get both working any ideas? Try: ServerName www.domain.com ServerAlias domain.com Richard. |
|
|||
|
Gary Mayor <gary@abertron.co.uk> wrote:
> On my domain http://www.domain.com works but http://domain.com doesn't. First, check that ping www.domain.com and ping domain.com resolv in the same ip address, then use the ServerAlias directive. Davide -- | We are either doing something, or we are not. 'Talking about' is a | subset of 'not'. -- from alt.sysadmin.recovery | | |