RE: Cannot change Apache2 ServerName/ServerAlias
I'm still having trouble trying to access my page through an alias
Here's what I've fixed/done so far:
1) changed ServerName http://server to ServerName server
2) used the a2ensite tool to enable the site
As for /etc/hosts, I already had the following in it:
127.0.0.1 localhost.localdomain localhost
123.45.678.901 hostname.domainname hostname aliasname
Am I suppose to have them in 2 separate lines?
i.e.
127.0.0.1 localhost.localdomain localhost
123.45.678.901 hostname.domainname hostname
123.45.678.901 hostname.domainname aliasname
Also, I do plan to have more vhosts running after I figure apache2 (running on Debian 3.1) out.
Thanks in advance!
Regards,
-Glen
-----Original Message-----
From: Antonio Ognio [mailto:gnrfan@gnrfan.org]
Sent: Tuesday, February 07, 2006 11:28 AM
To: debian-user@lists.debian.org
Subject: Re: Cannot change Apache2 ServerName/ServerAlias
El Mon, 06-02-2006 a las 16:47 -0500, Yu,Glen [Ontario] escribió:
> I'm having trouble changing the ServerName & ServerAlias to look up my page.
Have you addded a line in /etc/hosts to point newpagename to your IP
address?
If you intend to have only one page there by far the simplest way is not
mess with VirtualHost setup and just let the main configuration serve
pages from your main DocumentRoot no matter with IP address or host name
the cliet (e.g. browser) reach you by.
Hope that helps,
Antonio.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: