Lynx Problem with Apache Virtual Hosts

Lynx Problem with Apache Virtual Hosts

Post by Garli » Tue, 15 Oct 1996 04:00:00



We are running Apache 1.1.1 as our web server.  We serve three virtual
hosts, two of which are unique domain names and one of which is a
subdomain of our main domain.  When any version of Lynx prior to 2.5 tries
to retrieve the URL http://home.gnofn.org, the VirtualHost
http://neworleansonline.com is served instead.  All other browsers and
versions of Lynx 2.5 or higher get the right page.  Does this sound
familiar to anyone?  Is there anything we can do to circumvent this
problem on our side, or must we depend on remote systems upgrading their
Lynx to 2.5 or higher to reach the correct site?

Thanks in advance,

Dave Cash

 
 
 

Lynx Problem with Apache Virtual Hosts

Post by Sam Wo » Tue, 15 Oct 1996 04:00:00


Yes, this is documented: http://www.apache.org/docs/1.1/host.html

The easiest solution is to use a unique ip address for each virtual site.

: We are running Apache 1.1.1 as our web server.  We serve three virtual
: hosts, two of which are unique domain names and one of which is a
: subdomain of our main domain.  When any version of Lynx prior to 2.5 tries
: to retrieve the URL http://home.gnofn.org, the VirtualHost
: http://neworleansonline.com is served instead.  All other browsers and
: versions of Lynx 2.5 or higher get the right page.  Does this sound
: familiar to anyone?  Is there anything we can do to circumvent this
: problem on our side, or must we depend on remote systems upgrading their
: Lynx to 2.5 or higher to reach the correct site?
:
--

 
 
 

Lynx Problem with Apache Virtual Hosts

Post by Anirvan Chatterj » Wed, 16 Oct 1996 04:00:00


-----BEGIN PGP SIGNED MESSAGE-----

: We are running Apache 1.1.1 as our web server.  We serve three virtual
: hosts, two of which are unique domain names and one of which is a
: subdomain of our main domain.  When any version of Lynx prior to 2.5 tries
: to retrieve the URL http://home.gnofn.org, the VirtualHost
: http://neworleansonline.com is served instead.

You're not serving "real" virtual hosts. You're exploiting a feature
of HTTP 1.1 where browsers' HTTP transactions tell the server which
host they're looking for; this obviously won't work for *any* browsers
that don't implement elements of HTTP 1.1. There's documentation on
this issue available on the apache web site (http://www.apache.org/).

___________________________________

PGP: 0x93C5C165  finger -> PGP/geek
URL: http//www.pobox.com/~anirvan/

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMmMmMWTQ0LuTxcFlAQHVmwP9FQhHt8fMavR49S8VXlfZRqO3OXBZGRcv
BKTUkgQxr1dkzc0+/EtiXwLQDto5rKNSRGeDKTYDP0Ql/jKAiVB2teUyR2O2DUGQ
6lh8gqHWQogIysXb1RFxPCYBRr5m5YAq5xqyw3t4UdapjI5LDUeaU5OsXyAdR484
Gjgj0ZnTE9g=
=diER
-----END PGP SIGNATURE-----

 
 
 

Lynx Problem with Apache Virtual Hosts

Post by Subir Grew » Wed, 16 Oct 1996 04:00:00



: We are running Apache 1.1.1 as our web server.  We serve three virtual
: hosts, two of which are unique domain names and one of which is a
: subdomain of our main domain.  When any version of Lynx prior to 2.5 tries
: to retrieve the URL http://home.gnofn.org, the VirtualHost
: http://neworleansonline.com is served instead.  All other browsers and
: versions of Lynx 2.5 or higher get the right page.  Does this sound
: familiar to anyone?  Is there anything we can do to circumvent this
: problem on our side, or must we depend on remote systems upgrading their
: Lynx to 2.5 or higher to reach the correct site?

Can't reproduce the problem with 2.3.7 <shrug> I'd have thought it would
be a redirect problem but that URL yields a simple 200, everything seems
fine to me.  If you could tell me which version you tried and where, I
might be able to do some further testing.  

--

A total abstainer is one who abstains from everything but abstention,
and especially from inactivity in the affairs of others.
                -- Ambrose Bierce, "The Devil's Dictionary"

 
 
 

1. Apache 1.3b2: Default Host and all virtual hosts serve only first virtual hosts pages?

Hello.

Have been running 1.2b8 for a intranet and decided to move upto 1.3b2. I
have several name based virtual hosts that have been working under
1.2b8. After compiling and installing 1.3b2 my virtual hosts do not
work. In fact what happens is that even though DocumentRoot and default
server name is different, eg: www.serverA.net pointing to /www/default,
Apache 1.3b2 will always take me to the first defined virtual host as if
it's locked to it no matter what virtual host I try to browse. What
gives? Please post and E-Mail.

In /etc/hosts for my machines IP address I have

A.B.C.D         www.default.net www.virtA.net www.virtB.net

In ../conf/httpd.conf I have;

<VirtualHost www.virtA.net>

DocumentRoot /usr/local/www/virtA
ServerName www.virtA.net
ErrorLog logs/virtA.error.log
TransferLog logs/virtA.access.log
</VirtualHost>

<VirtualHost www.virtB.net>

DocumentRoot /usr/local/www/virtB
ServerName www.virtB.net
ErrorLog logs/virtB.error.log
TransferLog logs/virtB.access.log
</VirtualHost>

--

2. ISP Connection problems....Please help!!!!

3. Name Based Virtual Hosting - Unable to access Virtual domain from IE/Lynx

4. Sed - Delete everything after the last occurance

5. Mixing Apache Name Based Virtual Hosts and SSL Virtual Host

6. printer interfaces

7. Apache - Virtual Host or /etc/hosts

8. Do a full upgrade to slack2.2?

9. Apache 2.0.x virtual host ALWAYS beings up the FIRST host in the list..

10. FrontPage virtual hosting, removal or reset of virtual host

11. : How to prevent one named virtual host from "seeing" another virtual hosts files ?

12. For Discussion: web virtual hosting vs mail virtual hosting

13. apache 1.3.2 virtual host problem