logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_proxy_html prevents pdf from showing
Author
amangeles



Joined: 11 Aug 2007
Posts: 3

PostPosted: Sat 11 Aug '07 14:11    Post subject: mod_proxy_html prevents pdf from showing Reply with quote

Hi,

I have setup apache http server as a reverse proxy server and I am using mod_proxy_html for rewriting the urls. Images load up fine as well as the links. I'm encountering a problem however when I click on a link that calls up a servlet that should display a pdf file. The page that loads is blank ( no error messages displayed). Looking at the proxy log, it is saying that the page contains a non-html content and no filter is set ( which I know is correct ) and viewing the source of the blank page I noticed that the content type is text/html.

Here is an excerpt of my conf file:

ProxyRequests Off
ProxyPass /app1/ http://internal.com/app1
ProxyHtmlUrlMap http://internal.com/app1 /app1

<Location /newcontext>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /app1
ProxyHTMLURLMap /app1 /app1
RequestHeader unset Accept-Encoding
</Location>

When I tried commenting SetOutputFilter I did manage to load the pdf but the url that was displayed is http://internal.com/app1 which shouldn't be the case.

Any ideas as how to solve this? Thanks.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sat 11 Aug '07 14:30    Post subject: Reply with quote

Running version mod_proxy_html-3.0.0 on Windows ?

Steffen
Back to top
amangeles



Joined: 11 Aug 2007
Posts: 3

PostPosted: Sat 11 Aug '07 14:58    Post subject: Reply with quote

I'm using the version prior to 3.0 in Windows. Is this problem fixed in version 3.0?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sat 11 Aug '07 15:05    Post subject: Reply with quote

I forwared your issue to the author (Nick).

Steffen
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sat 11 Aug '07 17:17    Post subject: Reply with quote

Got answer from the author:

It is most likely an error in the user's observation. mod_proxy_html doesn't touch non-HTML contents, and the message confirms it.
If it persists, look elsewhere in the configuration, perhaps for other filter configuration that the SetOutputFilter overrides.
Back to top


Reply to topic   Topic: mod_proxy_html prevents pdf from showing View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules