Re: [squid-users] http://www.solitare.com/

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 3 Nov 2004 11:29:50 +0100 (CET)

On Tue, 2 Nov 2004, Russ Uhte wrote:

> I'm running squid 2.5STABLE7 on FreeBSD4.10 as a transparent proxy using ipf
> to redirect port 80 traffic to the squid server. When I try to access
> www.solitare.com, and click "Click here to play" I'm greeted with an error
> message about not being able to connect. When I look at the access.log, I
> get TCP_MISS/503 1490 GET http://virtul/main.slx - NONE/- text/html.
> Obviously the problem is that squid can't resolve the virtual part of the
> domain name, but if I move out from behind the proxy, everything works
> fine... I'm perplexed. Can anyone duplicate, or a workaround?

You should be able to use a redirector to clean up this broken URL.

The URL should read

   http://www.virtul.com/main.slx

The only reason why it works when not using a proxy is because some
browsers (but not all) tries to guess the actual server name if seeing jus
a host name. So when they see http://virtul/main.slx and virtul is not a
host in the local domain the browsers start guessing what the actual
server name should be by trying a browser dependent list of patterns

Example what such list of patterns could read like

    www.<host>.com
    <host>.com
    www.<host>.org
    <host>.org
    [etc]

The exact list is very browser dependent, but most starts looking for
www.<host>.com.

Regards
Henrik
Received on Wed Nov 03 2004 - 03:29:58 MST

This archive was generated by hypermail pre-2.1.9 : Wed Dec 01 2004 - 12:00:01 MST