Apache Help
Michael Pratt
mtpratt1971 at hotmail.com
Thu Feb 28 20:47:16 CST 2002
When I use what you got I now get this
[Thu Feb 28 14:36:35 2002] [warn] NameVirtualHost <IP ADDRESS> has no
VirtualHosts
----Original Message Follows----
From: "Brian Densmore" <DensmoreB at ctbsonline.com>
To: <mtpratt at swbell.net>, "KCLUG (E-mail)" <kclug at kclug.org>
Subject: RE: Apache Help
MIME-Version: 1.0
MHotMailBE47D694002C40042A21CFE3F38CEC720; Thu, 28 Feb 2002 11:57:11 -0800
marauder.illiana.net (8.12.1/8.12.1) with ESMTP id g1SJptoF031599for
<kclug-list at marauder.illiana.net>; Thu, 28 Feb 2002 13:51:55 -0600
(8.12.1/8.12.1/Submit) id g1SJpt4j031598for kclug-list; Thu, 28 Feb 2002
13:51:55 -0600
marauder.illiana.net (8.12.1/8.12.1) with ESMTP id g1SJptoF031594for
<kclug at kclug.org>; Thu, 28 Feb 2002 13:51:55 -0600
>From owner-kclug at marauder.illiana.net Thu, 28 Feb 2002 11:57:18 -0800
X-Authentication-Warning: marauder.illiana.net: majordom set sender to
owner-kclug at marauder.illiana.net using -f
X-MIMEOLE: Produced By Microsoft Exchange V6.0.4712.0
content-class: urn:content-classes:message
Message-ID: <39CF78DBFE15E141A9FE7DE61AE74D1C065624 at ctbs-hq1.hq.ctbs.net>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Apache Help
Thread-Index: AcHAgh66VBoXH985QpWVZSjO7DtQOAADNUqA
X-MIME-Autoconverted: from quoted-printable to 8bit by marauder.illiana.net
id g1SJptoF031595
Sender: owner-kclug at marauder.illiana.net
Precedence: bulk
Umm... Mike what I said about the DocumentRoot lines, I meant to say
ServerPath.
Also I think the second and any subsequent domains need the ServerAlias
line added.
Also you'll need appropriate DNS entries of course.
In my config, I have these lines:
Listen 80
Listen 8080
Listen 443
...
BindAddress *
...
UseCanonicalName on
...
HostnameLookups on
...
NameVirtualHost <ip address>:80
<VirtualHost domain1.net:80>
ServerName domain1.net
DocumentRoot /var/www/html
...
</VirtualHost>
<VirtualHost domain2.org:80>
ServerName domain2.org
DocumentRoot /var/www/html/domain2
ServerAlias domain2.org
...
</VirtualHost>
<VirtualHost domain2.org:443>
ServerName domain2.org
DocumentRoot /var/www/html/domain2
ServerAlias domain2.org
...
</VirtualHost>
<VirtualHost domain1.net:8080>
ServerName domain1.net
DocumentRoot /var/www/html
...
</VirtualHost>
Brian
> -----Original Message-----
> From: Michael Pratt [mailto:mtpratt1971 at hotmail.com]
> Sent: Thursday, February 28, 2002 11:56 AM
> To: kclug at kclug.org
> Subject: Apache Help
>
>
> I am trying to set up multiple domains using one IP I have
> this in my
> httpd.conf
>
> NameVirtualHost <DSL IP ADDRESS>
>
> <VirtualHost domain1.net>
> DocumentRoot /var/www/html
> ServerName domain1.net
> </VirtualHost>
>
> <VirtualHost domain2.org>
> DocumentRoot /var/www/html/domain2
> ServerName domain2.org
> </VirtualHost>
>
> The problem I have is no matter what domain I put in it goes
> to domain1.net
>
> how can I set Apache up to point Domain1 to /var/www/html and
> Domain2 to
> /var/www/html/domain2?
>
>
> Thanks!
>
> Mike
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
>
> majordomo at kclug.org
>
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
More information about the Kclug
mailing list