Can someone please tell what I am doing wrong here, I am using Apache
reverse proxy. I have been having this issue for sometime.

#WORKS
1. If I use the Internal url directly to the server.
  a. https://example.com:20201/class/page/createpdf.jsp?requestId=7
  b. I get a pdf to download.

# FAILS
2. If I use the External url I get "might be temporarily down or it may
have moved permanently to a new web address."
  a. https://www.docuzzzz.com/class/page/createpdf.jsp?requestId=7
  b. "Web Page Not Available" - "The webpage at
https://www.docuzzzz.com/class/page/createpdf.jsp?requestId=7 might be
temporarily down or it may have moved permanently to a new web address.
Error code: ERR_INVALID_RESPONSE"


# Class Directive (443) #EXAMPLE
RewriteRule ^/class$(.*) https://www.docuzzzz.com/class$1 [L,NC]

<Location /class/>
        SetOutputFilter   proxy-html
        ProxyPassReverse  https://example.com:20201/class
        ProxyHTMLEnable   On
        ProxyHTMLExtended On
        ProxyHTMLURLMap   http://example.com:20201/class  /class
        RequestHeader     unset  Accept-Encoding
</Location>


Thanks,
Otis

Reply via email to