Hide Port for POST requests using Apache Proxy to IIS

Discussion in 'Apache' started by dubaifux, Jan 15, 2012.

  1. #1
    I have an IIS on port 8080 and setup Apache using Proxy settings:

    ProxyRequests Off
    ProxyPreserveHost On
    
    
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
    
    
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/
    Code (markup):
    I want that all requests get passed from Apache to IIS. I am hosting an ASMX Web Service on the IIS. Everything works fine and I can access the WSDL file and the method descriptions. However, once I try to invoke a method which returns XML, I see that the request is as follows:

    POST http://myserver:8080/etc.... (Firebug gave me the hint)

    The problem is that port 8080 is blocked by ISP. If I remove the port (8080) and resend the request, everything works fine. How can I tell Apache not to append the port number? It worked with all the previous requests (navigating between pages). But suddenly it a added the port number and it stopped working.

    Please point me in the right direction,

    Thank you
     
    dubaifux, Jan 15, 2012 IP
  2. dubaifux

    dubaifux Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hm, I guess it is not Apache. I saw that the form post back method was generated with the :8080 port directive. Guess I need to see now why IIS is doing this (default behaviour?).

    Dont know if that can be adjusted.
     
    dubaifux, Jan 15, 2012 IP