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: iframe src stripped from tag (reverse proxying)
Author
burnside



Joined: 06 Jun 2011
Posts: 4
Location: United States

PostPosted: Mon 06 Jun '11 19:39    Post subject: iframe src stripped from tag (reverse proxying) Reply with quote

I'm using reverse proxy on my apache server and noticed that the iframe src and other attributes are stripped. I noticed that the following line was commented out so I uncommented it and restarted the web server:

ProxyHTMLLinks iframe src longdesc

Even after this change and restart, no luck. Any ideas?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7306
Location: Germany, Next to Hamburg

PostPosted: Wed 08 Jun '11 9:54    Post subject: Reply with quote

Do you use mod_proxy_html ?
Back to top
burnside



Joined: 06 Jun 2011
Posts: 4
Location: United States

PostPosted: Wed 08 Jun '11 16:48    Post subject: Reply with quote

Yes I do.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7306
Location: Germany, Next to Hamburg

PostPosted: Wed 08 Jun '11 17:34    Post subject: Reply with quote

You can turn on verbose logging to what happens.

ProxyHTMLLogVerbose On

Since I have currently no clue why it doesn't work with the ProxyHTMLLinks iframe stuff. it would be helpful if you provide your reverse config so I / we can try to reproduce and help you. And some example html iframe code you use.
Back to top
burnside



Joined: 06 Jun 2011
Posts: 4
Location: United States

PostPosted: Wed 08 Jun '11 17:39    Post subject: Reply with quote

Thanks. I'll get our admin to turn that on and then report later.
Back to top
niq



Joined: 11 Aug 2007
Posts: 6

PostPosted: Wed 08 Jun '11 22:11    Post subject: Reply with quote

Are you using a ProxyHTMLDoctype?

If so, did you read the last paragraph in its documentation:

From version 3, if the first form is used, mod_proxy_html will also clean up the HTML to the specified standard. It cannot fix every error, but it will strip out bogus elements and attributes. It will also optionally log other errors at LogLevel Debug.
Back to top
burnside



Joined: 06 Jun 2011
Posts: 4
Location: United States

PostPosted: Thu 09 Jun '11 18:53    Post subject: Reply with quote

Ok, changed the httpd.conf file to:

LogLevel warn
#LogLevel debug
ProxyHTMLLogVerbose On

I then went to the page with the iframe, checked the error log, found nothing reported about the page. I guess I need to change the loglevel to debug, huh?

Also, I am using ProxyHTMLDoctype XHTML. I'm going to change that to ProxyHTMLDoctype XHTML Legacy and see if that works.

Thanks for all the help!
Back to top


Reply to topic   Topic: iframe src stripped from tag (reverse proxying) View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules