# Re: Problem with port number in URLs via CERN httpd proxy server

Henrik Frystyk Nielsen (frystyk@ptsun00.cern.ch)
Sat, 17 Dec 1994 18:05:19 +0100

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Royston Paynter: "new URLs"
- Previous message: owner-uri@bunyip.com: "Problem with port number in URLs via CERN httpd proxy server"
- Maybe in reply to: owner-uri@bunyip.com: "Problem with port number in URLs via CERN httpd proxy server"

    Date: Sat, 17 Dec 1994 18:05:19 +0100

    Message-Id: <9412171705.AA10697@ptsun03.cern.ch>

    From: frystyk@ptsun00.cern.ch (Henrik Frystyk Nielsen)

    To: Multiple recipients of list <www-proxy@www0.cern.ch>

    Subject: Re: Problem with port number in URLs via CERN httpd proxy server

This is a well-known problem. As I am now working on getting the daemon
to work with the new library, I can't give a patch, but if you want to
fix it yourself then look into the file HTParse.c, and then function
HTCanon(). At the end of this function you can disable the block
starting:

/* Chop off port if `:80' (http), `:70' (gopher), or `:21' (ftp) */

and then recompile the library and the server. This is most easily done
by typing (in the WWW directory)

make clobber
./BUILD daemon

-- cheers --

Henrik Frystyk
frystyk@W3.org
+ 41 22 767 8265
World-Wide Web Project,
CERN, CH-1211 Geneva 23,
Switzerland

> I'm running the CERN httpd (3.0) as a proxy, to provide a local cache.
> This works fine. However, it fails to retrieve a document where the
> URL provided by the user includes a non-standard port number. A
> specific example is http://www.nag.co.uk:70/ which provokes httpd to
> return a "Fatal error 500: ... system call 'connect' failed" page.
>
> This URL works when a direct connection is made, avoiding the
> proxy. Is this something I can get round by suitable configuration?
> I can't see anything about this in the FAQ or bug list.

- Next message: Royston Paynter: "new URLs"
- Previous message: owner-uri@bunyip.com: "Problem with port number in URLs via CERN httpd proxy server"
- Maybe in reply to: owner-uri@bunyip.com: "Problem with port number in URLs via CERN httpd proxy server"