On Tue, Feb 07, 2006 at 12:08:19PM -0500, Yu,Glen [Ontario] wrote: > 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
Did you restart apache2? > 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 No, they should be on the same line. I.e if you have ServerName server ServerAlias newpagename in your virtual host, then you also have 123.45.678.901 hostname.domainname server newpagename in your /etc/hosts file. What is the actual error you get when you try to browse the site with the alias? > 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:[EMAIL PROTECTED] > 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. Simo -- :r ~/.signature
signature.asc
Description: Digital signature