Tags:
create new tag
view all tags

Bug: PROXYHOST, PROXYPORT

I have defined in TWikiPreferences:

  • Set PROXYHOST = www-cache.tu-chemnitz.de
  • Set PROXYPORT = 8080

This doesn't work. As I see in my Proxylogs there seems to be bad URLs for a Proxy. In net.pm you only only change the host for the needed conection not the URL. I see a GET /wiki/... HTTP/1.1 an not the needed GET http:///wiki/... HTTP/1.1.

I think this is not correct.

My patch: add the line

        $req = "GET http://$theHost:$thePort$theUrl HTTP/1.1\r\n";

to get this code:

    if($proxyHost && $proxyPort) {
        $req = "GET http://$theHost:$thePort$theUrl HTTP/1.1\r\n";
        $theHost = $proxyHost;
        $thePort = $proxyPort;
    }

Test case

Environment

TWiki version: TWiki20030201
TWiki plugins: KoalaSkin, TablePlugin, ...
Server OS: RedHat-7.3
Web server: apache-1.3.27-2
Perl version: perl-5.6.1-34.99.6
Client OS: RedHat-7.3
Web Browser: Mozilla-1.2.1

-- GuentherFischer - 28 Feb 2003

Follow up

Fix record

-- GuentherFischer - 28 Feb 2003

This fix is insufficient for the majority of cases. Also this bug had an ImplementationDate - which was wrong - it hadn't been implemented in the TWiki CVS tree. This patch is a partial solution that needs to be combined with the solution for a very, very similar problem described in ProxiedIncludesBrokenImplementationBug . The thing that misses stupidly (I can say that, I wrote the other one smile ) is the remote server port number! This patch needs to be merged with the other to form a full fix.

I'm marking this a BugDuplicate (even though it was logged first) since the other page contains a patch that matches the PatchGuidelines, and fixes a few other problems at the same time.

-- MichaelSparks - 20 Jul 2003

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2003-07-20 - MichaelSparks
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.