[TriLUG] Named Virtual Hosts Help

Tanner Lovelace lovelace at wayfarer.org
Sun Jan 6 15:51:27 EST 2002


On Sun, 2002-01-06 at 15:22, Andy Naylor wrote:
> Hi All:
> 
> I'm working on a simple Named Virtual Hosts problem on my box.
> 
> Problem:
> While typing in www.foo2.org I can get to the web site/apache box without a
> problem
> 
> Going to www.tautaug.org  Gets me:
> The url is www.foo2.org/piphi
> and the error message:
> Not Found
> The requested URL /piphi/ was not found on this server.
> 

Well, the document returned at www.tautaug.org is the following:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="refresh" content="1;
url=http://www.triangels.org/piphi/"/>
</head>
<body>
</body>
</html>

Which redirects things to www.triangles.org/piphi/


Below, however, I notice you have the root of foo.org
as "DocumentRoot /var/www/html/piphi" so when you access
foo.org you would be accessing the piphi directory 
directly and of course foo.org/piphi would give you an
error, unless of cours there is a directory called
/var/www/html/piphi/piphi.  Try accessing foo.org
directly instead of with the /piphi/ directly and
see if that is what you're looking for.  If so, and
if you really want to access it as foo.org/piphi/
you need to remove the piphi from your DocumentRoot
statement.

Tanner

> Any Ideas would help. I've changed the config. several times with the same
> result so I'm missing something.
> 
> Thanks,
> Andy...
> 
> 
> 
> Apache box sits behind a modem router with the IP addr. of 192.168.1.5
> 
> httpd.conf:
> 
> 
> 
> ServerName mahimahi.localdomain
> 
> ServerAdmin blackfish at tautaug.org
> 
> Listen *:80
> 
> Port 80
> 
> NameVirtualHost 192.168.1.5:80
> 
> ...
> 
> 
> # Virtual hosts
> 
> 
> # Virtual host www.tautaug.org
> 
> <VirtualHost 192.168.1.5:80>
>         ServerName www.tautaug.org
>         DocumentRoot /var/www/html/tautaug
> #       ServerSignature email
> 
> 
> 
> 
> </VirtualHost>
> 
> 
> 
> # Virtual host www.foo2.org
> <VirtualHost 192.168.1.5:80>
> 
>         ServerName www.foo2.org
>         DocumentRoot /var/www/html/piphi
> #       ServerSignature email
> 
> </VirtualHost>
> 
> _______________________________________________
> TriLUG mailing list
> http://www.trilug.org/mailman/listinfo/trilug
-- 
Tanner Lovelace | lovelace at wayfarer.org | http://wtl.wayfarer.org/
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
GPG Fingerprint = A66C 8660 924F 5F8C 71DA  BDD0 CE09 4F8E DE76 39D4
GPG Key can be found at http://wtl.wayfarer.org/lovelace.gpg.asc
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
 Those who are willing to sacrifice essential liberties for a little 
 order, will lose both and deserve neither.  --  Benjamin Franklin 

 History teaches that grave threats to liberty often come in times
 of urgency, when constitutional rights seem too extravagant to 
 endure.  --  Justice Thurgood Marshall, 1989 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://www.trilug.org/pipermail/trilug/attachments/20020106/cabc7313/attachment.pgp>


More information about the TriLUG mailing list