Author |
|
burnside
Joined: 06 Jun 2011 Posts: 4 Location: United States
|
Posted: Mon 06 Jun '11 19:39 Post subject: iframe src stripped from tag (reverse proxying) |
|
|
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: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 08 Jun '11 9:54 Post subject: |
|
|
Do you use mod_proxy_html ? |
|
Back to top |
|
burnside
Joined: 06 Jun 2011 Posts: 4 Location: United States
|
Posted: Wed 08 Jun '11 16:48 Post subject: |
|
|
Yes I do. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 08 Jun '11 17:34 Post subject: |
|
|
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
|
Posted: Wed 08 Jun '11 17:39 Post subject: |
|
|
Thanks. I'll get our admin to turn that on and then report later. |
|
Back to top |
|
niq
Joined: 11 Aug 2007 Posts: 6
|
Posted: Wed 08 Jun '11 22:11 Post subject: |
|
|
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
|
Posted: Thu 09 Jun '11 18:53 Post subject: |
|
|
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 |
|