[vox-tech] apache question: virtualhost not working

Mark K. Kim vox-tech@lists.lugod.org
Sun, 11 Apr 2004 15:27:30 -0700 (PDT)


Rod is missing ":80" after NameVirtualHost.  Could that possibly be the
difference?

Maybe not... but worth a try... -_-'

-Mark


On Sun, 11 Apr 2004, Peter Jay Salzman wrote:

> On Sun 11 Apr 04,  9:40 AM, Henry House <hajhouse@houseag.com> said:
> > P=E5 s=F6ndag, 11 april 2004, skrev Rod Roark:
> > > On Sunday 11 April 2004 07:04 am, Peter Jay Salzman wrote:
> > > ...
> > > >    NameVirtualHost 64.142.25.39:80
> > > >
> > > >    <VirtualHost www.liberal.ws:80>
> > > >       ServerAdmin p@dirac.org
> > > >       DocumentRoot /home/p/linux
> > > >       ServerName www.liberal.ws
> > > >       ErrorLog /var/log/apache/test_error
> > > >       LogLevel warn
> > > >       CustomLog /var/log/apache/test_access common
> > > >    </VirtualHost>
> > >
> > > What works for me looks like this:
> > >
> > >    NameVirtualHost 64.142.25.39
> > >    <VirtualHost 64.142.25.39:80>
> > >       etc.
> >
> > Rod is right; you need the NameVirtualHost directive when virtual hosts=
 share
> > the same IP address (i.e., there are multiple DNS A records for your th=
e IP
> > address of your server, or there are CNAME records giving it additional
> > names).
>
> i'm confused -- isn't that what i have above?
>
> i have two domains, www.dirac.org and www.liberal.ws.  i want:
>
>    www.dirac.org  -> document root /www
>    www.liberal.ws -> document root /www/p/linux
>
> www.dirac.org already works.  it's configured correctly.  in order to
> add www.liberal.ws, i tried adding this:
>
>
>     NameVirtualHost 64.142.25.39:80
>
>     <VirtualHost www.liberal.ws:80>
>        ServerAdmin p@dirac.org
>        DocumentRoot /home/p/linux
>        ServerName www.liberal.ws
>        ErrorLog /var/log/apache/test_error
>        LogLevel warn
>        CustomLog /var/log/apache/test_access common
>     </VirtualHost>
>
> is that not correct?
>
> pete
>
> --
> Make everything as simple as possible, but no simpler.  -- Albert Einstei=
n
> GPG Instructions: http://www.dirac.org/linux/gpg
> GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
>

--=20
Mark K. Kim
AIM: markus kimius
Homepage: http://www.cbreak.org/
Xanga: http://www.xanga.com/vindaci
Friendster: http://www.friendster.com/user.jsp?id=3D13046
PGP key fingerprint: 7324 BACA 53AD E504 A76E  5167 6822 94F0 F298 5DCE
PGP key available on the homepage