All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem running two domains on one Apache server
@ 2003-06-18  2:25 Nilesh Sahita
  2003-06-18  3:06 ` James Turnbull
  2003-06-18  3:46 ` Jim Limmer
  0 siblings, 2 replies; 11+ messages in thread
From: Nilesh Sahita @ 2003-06-18  2:25 UTC (permalink / raw)
  To: linux-newbie

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

In /var/www/html/test1 and /var/www/html/test2, I have two simple
index.html files.

When I access http://nstest1.homedns.org, I serves up test1/index.html -
which is what I expected.  However, when I access
http://nstest2.homedns.org, it serves up test1/index.html instead of
test2/index.html.

I tried clearing browser cache, restarting apache but doesn't help.

Anyone got idea what could be potentially going wrong?

TIA for any pointers/help.

Regards.

-
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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-06-18 14:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.