On 06/02/06, Yu,Glen [Ontario] <[EMAIL PROTECTED]> wrote:
> I'm having trouble changing the ServerName & ServerAlias to look up my page.
>
> I'm running Debian 3.1 with 2.4.x kernel on an old Dell laptop, however, I 
> can only access my page via http://server but not as something else (i.e. 
> http://newpagename).  This is what I have at the moment inside 
> /etc/apache2/sites-available/default (I simply changed DocumentRoot, 
> commented out RedirectMatch ~/$ /apache2-default, and added in ServerName 
> server and ServerAlias newpagename:
>
[snip]

>        ServerName http://server
>        ServerAlias newpagename
>
> </VirtualHost>

ServerName should only be a name, ie 'server'. http://server is invalid.

you can use: apache2ctl configtest

to verify your config after making changes.

--
~ Darryl  ~ [EMAIL PROTECTED]
~ http://darrylclarke.com

Reply via email to