ProxyPass ends up rewriting port into URL

Discussion in 'Apache' started by didds, Apr 20, 2012.

  1. #1
    1st post here so please be gentle :)I have a virtual host with a simple proxypass statement.I use Proxypass elsewhere with other URLs with no similar issue.In shortWhen I enter URL http://am.XXX.co.uk/amserver/ I need it to use http://augusta:8081/I use the following virtualhost configServerName am.XXX.co.ukProxyPass / http://augusta:8081/ProxyPassReverse / http://augusta:8081/LogLevel DebugErrorLog "logs/am_error_log"CustomLog "logs/am_access_log" commonWhen I enterhttp://am.XXX.co.uk/amserver/Firefox ends up shwoing as a URLhttp://am.XXX.co.uk:8081/amserver/UI/Loginand reportsFirefox can't establish a connection to the server at am.uatstg.csg.issolutions.co.uk:8081.(opera reports and shows similar)The backend on augusta is a glassfish installation.This reverse proxy has been used absoluetly successfully on Sun Java System Web Server 7.0U8 The logs show[Fri Apr 20 09:39:33 2012] [error] [client 192.168.61.63] Ignoring X-Cluster-Client-Ip '192.168.52.215' from non-Load Balancer machine '192.168.61.63', referer: http://am.XXX.co.uk/amserver/[Fri Apr 20 09:39:33 2012] [debug] mod_proxy_http.c(56): proxy: HTTP: canonicalising URL //augusta:8081/amserver/UI/Login[Fri Apr 20 09:39:33 2012] [debug] proxy_util.c(1506): [client 192.168.61.63] proxy: http: found worker http://augusta:8081/ for http://augusta:8081/amserver/UI/Login, referer: http://am.XXX.co.uk/amserver/[Fri Apr 20 09:39:33 2012] [debug] mod_proxy.c(1020): Running scheme http handler (attempt 0)[Fri Apr 20 09:39:33 2012] [debug] mod_proxy_http.c(1973): proxy: HTTP: serving URL http://augusta:8081/amserver/UI/Login[Fri Apr 20 09:39:33 2012] [debug] proxy_util.c(2011): proxy: HTTP: has acquired connection for (augusta)[Fri Apr 20 09:39:33 2012] [debug] proxy_util.c(2067): proxy: connecting http://augusta:8081/amserver/UI/Login to augusta:8081[Fri Apr 20 09:39:33 2012] [debug] proxy_util.c(2193): proxy: connected /amserver/UI/Login to augusta:8081[Fri Apr 20 09:39:33 2012] [debug] proxy_util.c(2380): proxy: HTTP: backend socket is disconnected.[Fri Apr 20 09:39:33 2012] [debug] proxy_util.c(2444): proxy: HTTP: fam 2 socket created to connect to augusta[Fri Apr 20 09:39:33 2012] [debug] proxy_util.c(2576): proxy: HTTP: connection complete to 192.168.61.2:8081 (augusta)[Fri Apr 20 09:39:33 2012] [debug] mod_proxy_http.c(1743): proxy: start body send[Fri Apr 20 09:39:33 2012] [debug] mod_proxy_http.c(1847): proxy: end body send[Fri Apr 20 09:39:33 2012] [debug] proxy_util.c(2029): proxy: HTTP: has released connection for (augusta)Anyone any ideas why this rewritten UERl ends up with the port on the proxy?cheersian
     
    didds, Apr 20, 2012 IP
  2. didds

    didds Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't know what's happened with the formatting in that post? that's horrible. (posted in IE

    cheers

    ian
     
    didds, Apr 20, 2012 IP
  3. didds

    didds Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I tried a repost but that fails as well with "Live links and signatures are not available to you yet "

    I tried :-(

    ian
     
    didds, Apr 20, 2012 IP
  4. didds

    didds Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    (another posting attempt,same formatting errors. deleted)
     
    didds, Apr 20, 2012 IP
  5. scylla

    scylla Notable Member

    Messages:
    1,025
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    225
    #5
    Try posting it using code tags

    These tags
    Code (markup):
     
    scylla, Apr 20, 2012 IP