[vox-tech] Apache 2 virtual hosts configuration issue
ALLO (Alfredo Lopez)
vox-tech@lists.lugod.org
Wed, 6 Nov 2002 09:31:00 -0800
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C285BA.46969EFA
Content-Type: text/plain
Steve,
Where is your DocumentRoot pointing to?
In Redhat the configuration file is in:
/etc/httpd/conf/httpd.conf
On my single server this section looks like:
# Documents
DocumentRoot /var/www/html
UserDir public_html
IndexOptions FancyIndexing
Alfredo
-----Original Message-----
From: Steven Peck [mailto:speck@blkmtn.org]
Sent: Tuesday, November 05, 2002 8:56 PM
To: vox-tech@lists.lugod.org
Subject: [vox-tech] Apache 2 virtual hosts configuration issue
Ok,
I have Red Hat 8 running Apache 2. Running on an internal test LAN.
We'll use server.com and example.net for names as none of them are
accessible from the Internet yet.
Using their Apacheconf utility I have set up 2 virtual hosts.
If I use the name <file://www.server.com> www.server.com I get the default
Apache page.
If I use the name <file://www.example.net> www.example.net I get the
default Apache page.
If I use the name <file://www.server.com/index.html>
www.server.com/index.html I get the web page of the site I moved there.
If I use the name <file://www.example.net/index.html>
www.example.net/index.html I get the web page of the site I moved there.
If I specify ANY of the pages I moved there, I get them. If I do not
specify a page, I get the default Apache web page.
I have done this before with Apache 1.3 and the conf files look the same.
Any ideas on where to start reading?
-sp
------_=_NextPart_001_01C285BA.46969EFA
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2719.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=922112217-06112002><FONT face=Arial color=#0000ff
size=2>Steve,</FONT></SPAN></DIV>
<DIV><SPAN class=922112217-06112002><FONT face=Arial color=#0000ff size=2>Where
is your DocumentRoot pointing to?</FONT></SPAN></DIV>
<DIV><SPAN class=922112217-06112002><FONT face=Arial color=#0000ff size=2>In
Redhat the configuration file is in:</FONT></SPAN></DIV>
<DIV><SPAN class=922112217-06112002><FONT face=Arial
size=2>/etc/httpd/conf/httpd.conf</FONT></SPAN></DIV>
<DIV><SPAN class=922112217-06112002></SPAN><SPAN class=922112217-06112002><FONT
face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=922112217-06112002><FONT face=Arial color=#0000ff size=2>On
my single server this section looks like:</FONT></SPAN></DIV>
<DIV><SPAN class=922112217-06112002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=922112217-06112002><FONT face=Arial size=2>#
Documents<BR>DocumentRoot /var/www/html<BR>UserDir public_html<BR>IndexOptions
FancyIndexing</FONT></SPAN></DIV>
<DIV><SPAN class=922112217-06112002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=922112217-06112002><FONT face=Arial
size=2>Alfredo</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Steven Peck
[mailto:speck@blkmtn.org] <BR><B>Sent:</B> Tuesday, November 05, 2002 8:56
PM<BR><B>To:</B> vox-tech@lists.lugod.org<BR><B>Subject:</B> [vox-tech] Apache
2 virtual hosts configuration issue<BR><BR></FONT></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Ok,</FONT> </P>
<P><FONT face=Arial size=2>I have Red Hat 8 running Apache 2. Running on
an internal test LAN.</FONT> </P>
<P><FONT face=Arial size=2>We'll use server.com and example.net for names as
none of them are accessible from the Internet yet.</FONT> </P>
<P><FONT face=Arial size=2>Using their Apacheconf utility I have set up 2
virtual hosts.</FONT> <BR><FONT face=Arial size=2>If I use the name </FONT><A
href="file://www.server.com"><U><FONT face=Arial color=#0000ff
size=2>www.server.com</FONT></U></A><FONT face=Arial size=2> I get the default
Apache page.</FONT> <BR><FONT face=Arial size=2>If I use the name </FONT><A
href="file://www.example.net"><U><FONT face=Arial color=#0000ff
size=2>www.example.net</FONT></U></A><FONT face=Arial size=2> I get the
default Apache page.</FONT> </P>
<P><FONT face=Arial size=2>If I use the name </FONT><A
href="file://www.server.com/index.html"><U><FONT face=Arial color=#0000ff
size=2>www.server.com/index.html</FONT></U></A><FONT face=Arial size=2> I get
the web page of the site I moved there.</FONT> <BR><FONT face=Arial size=2>If
I use the name </FONT><A href="file://www.example.net/index.html"><U><FONT
face=Arial color=#0000ff size=2>www.example.net/index.html</FONT></U></A><FONT
face=Arial size=2> I get the web page of the site I moved there.</FONT> </P>
<P><FONT face=Arial size=2>If I specify ANY of the pages I moved there, I get
them. If I do not specify a page, I get the default Apache web
page.</FONT></P>
<P><FONT face=Arial size=2>I have done this before with Apache 1.3 and the
conf files look the same. Any ideas on where to start reading?</FONT>
</P>
<P><FONT face=Arial size=2>-sp</FONT> </P></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C285BA.46969EFA--