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 -> Apache View previous topic :: View next topic
Reply to topic   Topic: Reverse Proxy problem
Author
r4a5a88



Joined: 17 Oct 2016
Posts: 5
Location: Germany

PostPosted: Mon 17 Oct '16 13:47    Post subject: Reverse Proxy problem Reply with quote

Hi


I have owncloud running on a apache server in a private network behind an apache reverse proxy.


OS: Debian Jessie
PHP: 5
mysql db on owncloud server

here is the apache conf
http://www.hastebin.com/imucikoter.apache

Problem is:
Everything works exept the PDF viewer PDF.JS

I tried it without the proxy and it works so it must be the proxy.
to the outside it's https internally it's http
I am still using a self signed ssl-cert. could that be the problem? I don't know what to do.
Pls help
Thanks for the help in advance
Back to top
Steffen
Moderator


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

PostPosted: Tue 18 Oct '16 13:28    Post subject: Reply with quote

I see you have mod_proxy_html enabled.

By purpose ?

In the docu at https://httpd.apache.org/docs/2.4/mod/mod_proxy_html.html

I read at ProxyHTMLExtended Directive : ..... but links appearing in Javascript and CSS are ignored.

You can try to remove ProxyHTMLEnable On and ProxyHTMLExtended On
Back to top
r4a5a88



Joined: 17 Oct 2016
Posts: 5
Location: Germany

PostPosted: Tue 18 Oct '16 15:12    Post subject: Reply with quote

I thought it could help
thanks you for the advice
I deactivateed the mod and everything works Smile
Back to top
r4a5a88



Joined: 17 Oct 2016
Posts: 5
Location: Germany

PostPosted: Wed 02 Nov '16 16:52    Post subject: Reply with quote

I had to enable mod_proxy_html again for another client connected to the proxy.
Can you disable the mod for this directory ?
I have tried it wit ProxyHTMLEnable Off

The odd thing, the pdf viewer itself opens but the frame inside can't find the pdf file

my apache conf
http://www.hastebin.com/cesowuxogi.apache

the other client is in another file.
when I open the link inside the frame I get redirected to my webroot on the proxy
Back to top
r4a5a88



Joined: 17 Oct 2016
Posts: 5
Location: Germany

PostPosted: Wed 02 Nov '16 17:29    Post subject: Reply with quote

I found the answer Very Happy
I removed the line
Code:
 SetOutputFilter INFLATE;proxy-html;DEFLATE

and it worked
Back to top


Reply to topic   Topic: Reverse Proxy problem View previous topic :: View next topic
Post new topic   Forum Index -> Apache