From: Jim Limmer <jim@heem.org>
To: linux-newbie@vger.kernel.org
Subject: Re: Problem running two domains on one Apache server
Date: Tue, 17 Jun 2003 23:46:04 -0400 [thread overview]
Message-ID: <3EEFE07C.7090309@heem.org> (raw)
In-Reply-To: <1055903157.9558.9.camel@localhost.localdomain>
Change it so it looks like this
<VirtualHost *>
DocumentRoot "/var/www/html/test1"
ServerName nstest1.homedns.org
DirectoryIndex index.html index.php index.htm
</VirtualHost>
<VirtualHost *>
DocumentRoot "/var/www/html/test2"
ServerName nstest2.homedns.org
DirectoryIndex index.html index.php index.htm
LogLevel debug
</VirtualHost>
the directive in the vitrual host line is what tells apache what
interface/ip to listen on. assuming you only have one IP address on that
box, you could also just put that address there instead of the *
Nilesh Sahita wrote:
>Hi,
>
>I am trying to run two domains on one Apache domain.
>
>The system config is: RH9, Apache 2.0.40
>
>I setup two domains - nstest1.homedns.org and nstest2.homedns.org
>
>In Apache configuration, I create two virtual servers - the entries from
>httpd.conf are:
>
>Quote
>
>...
>
>NameVirtualHost *
>
><VirtualHost nstest1.homedns.org>
>DocumentRoot "/var/www/html/test1"
>ServerName nstest1.homedns.org
>DirectoryIndex index.html index.php index.htm
></VirtualHost>
>
><VirtualHost nstest2.homedns.org>
>DocumentRoot "/var/www/html/test2"
>ServerName nstest2.homedns.org
>DirectoryIndex index.html index.php index.htm
>LogLevel debug
></VirtualHost>
>
>End-quote
>
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next prev parent reply other threads:[~2003-06-18 3:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-18 2:25 Problem running two domains on one Apache server Nilesh Sahita
2003-06-18 3:06 ` James Turnbull
2003-06-18 3:46 ` Jim Limmer [this message]
2003-06-18 4:41 ` Nilesh Sahita
2003-06-18 5:20 ` Jim Limmer
2003-06-18 5:54 ` nksahita
2003-06-18 6:34 ` Master_PE
2003-06-18 8:39 ` nksahita
2003-06-18 8:55 ` Silly Question John T. Williams
2003-06-18 9:45 ` Flemming Greve Skovengaard
2003-06-18 14:41 ` Ray Olszewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3EEFE07C.7090309@heem.org \
--to=jim@heem.org \
--cc=linux-newbie@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox