[vox-tech] Apache virtual host config

Lewis Perdue vox-tech@lists.lugod.org
Sun, 11 Apr 2004 09:19:23 -0700


--=====================_3933646==.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

make sure apache is configured for NAME-BASED virtual hosting, NOT IP-BASED ...

make sure you have the _true_ document directory as opposed to virtual ... 
pwd will not always show that

If your documents are relying on symbolic links, make sure the server 
allows them


Below are a few lines from the httpd.conf file off the RH9/Apache2 server 
we run off the LAN at home. They may help you. our IP's are all local 
beause they are behind the router.


#
# Use name-based virtual hosting.
#
NameVirtualHost 192.168.1.1

<VirtualHost 192.168.1.1>
     ServerAdmin william@williamperdue.com
     DocumentRoot "/home/lperdue/public_html/perdueweb"
     ServerName www.perdueweb.com
     ServerAlias perdueweb.com
     ErrorLog logs/perdueweb-error_log
     TransferLog logs/perdueweb-error_log
</VirtualHost>

<VirtualHost 192.168.1.1>
     ServerAdmin william@williamperdue.com
     DocumentRoot "/home/lperdue/public_html/katherineperdue"
     ServerName www.katherineperdue.com
     ServerAlias katherineperdue.com
     ErrorLog logs/katherineperdue-error_log
     TransferLog logs/katherineperdue-error_log
</VirtualHost>



#
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var




--=====================_3933646==.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<body>
<font face="Courier New, Courier">make sure apache is configured for
NAME-BASED virtual hosting, NOT IP-BASED ...<br><br>
make sure you have the _true_ document directory as opposed to virtual
... pwd will not always show that<br><br>
If your documents are relying on symbolic links, make sure the server
allows them <br><br>
<br>
Below are a few lines from the httpd.conf file off the RH9/Apache2 server
we run off the LAN at home. They may help you. our IP's are all local
beause they are behind the router.<br><br>
<br>
#<br>
# Use name-based virtual hosting.<br>
#<br>
NameVirtualHost 192.168.1.1<br><br>
&lt;VirtualHost 192.168.1.1&gt;<br>
&nbsp;&nbsp;&nbsp; ServerAdmin william@williamperdue.com<br>
&nbsp;&nbsp;&nbsp; DocumentRoot
&quot;/home/lperdue/public_html/perdueweb&quot;<br>
&nbsp;&nbsp;&nbsp; ServerName
<a href="http://www.perdueweb.com/" eudora="autourl">www.perdueweb.com</a><br>
&nbsp;&nbsp;&nbsp; ServerAlias perdueweb.com<br>
&nbsp;&nbsp;&nbsp; ErrorLog logs/perdueweb-error_log<br>
&nbsp;&nbsp;&nbsp; TransferLog logs/perdueweb-error_log<br>
&lt;/VirtualHost&gt;<br><br>
&lt;VirtualHost 192.168.1.1&gt;<br>
&nbsp;&nbsp;&nbsp; ServerAdmin william@williamperdue.com<br>
&nbsp;&nbsp;&nbsp; DocumentRoot
&quot;/home/lperdue/public_html/katherineperdue&quot;<br>
&nbsp;&nbsp;&nbsp; ServerName
<a href="http://www.katherineperdue.com/" eudora="autourl">www.katherineperdue.com</a><br>
&nbsp;&nbsp;&nbsp; ServerAlias katherineperdue.com<br>
&nbsp;&nbsp;&nbsp; ErrorLog logs/katherineperdue-error_log<br>
&nbsp;&nbsp;&nbsp; TransferLog logs/katherineperdue-error_log<br>
&lt;/VirtualHost&gt;<br><br>
<br><br>
#<br>
#<br>
# DirectoryIndex: sets the file that Apache will serve if a
directory<br>
# is requested.<br>
#<br>
# The index.html.var file (a type-map) is used to deliver content-<br>
# negotiated documents.&nbsp; The MultiViews Option can be used for the
<br>
# same purpose, but it is much slower.<br>
#<br>
DirectoryIndex index.html index.html.var<br><br>
<br><br>
</font></body>
</html>

--=====================_3933646==.ALT--