[TriLUG] Named Virtual Hosts Help

Andy Naylor anaylor at nc.rr.com
Sun Jan 6 16:13:00 EST 2002


Well once again I've proved that looking for the obvious is always a
solution.
Thanks for actually looking at what I used as an index file. The redirect
was my problem.

Andy...
-----Original Message-----
From: trilug-admin at trilug.org [mailto:trilug-admin at trilug.org]On Behalf
Of Tanner Lovelace
Sent: Sunday, January 06, 2002 3:51 PM
To: trilug at trilug.org
Subject: Re: [TriLUG] Named Virtual Hosts Help


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




More information about the TriLUG mailing list