Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

ProxyHTMLURLMap issues ... resent .. surely somebody can help with this

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


peter.de.groot at det

Nov 19, 2009, 1:11 AM

Post #1 of 10 (2081 views)
Permalink
ProxyHTMLURLMap issues ... resent .. surely somebody can help with this

Hi,

Please help ... been grinding away for days :-).


I am trying to reverse proxy to my internal web site from the outside.

The internal web site has CSS and Java and everything.

HOWEVER.

The internal web site uses a "CSS Hack" (??) to get around browser issues in IE.
When I browse the internal site directly I see this in the source.

<!--[if lt IE 7.0]> <script src="/javascript/iepng.js"></script> <![endif]--> <!--[if lt IE 7.0]> <link rel="stylesheet" href="/css/ie6fix.css" type="text/css"/> <![endif]--> <!--[if IE 7.0]> <link rel="stylesheet" href="/css/ie7.css" type="text/css"/> <![endif]-->
When I view the page source via the proxy.. this piece of the code is MISSING, and the apache log shows this

Non-HTML content; not inserting proxy-html filter, referer: http://intranet.fff.xxxxdu/tv/"]http://intranet.fff.xxxxdu/tv/

I am presuming this is related to the error.

The displayed page is missing its "theme", which I am assuming is to do with the "hack"

How can I get ProxyHTMLMap to pass this content through.

Config snippet is


# ------- TV


# To support scripting events (with ProxyHTMLExtended On),
# you'll need to declare them too.

ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \
onmouseover onmousemove onmouseout onkeypress \
onkeydown onkeyup onfocus onblur onload \
onunload onsubmit onreset onselect onchange


ProxyHTMLLogVerbose on
LogLevel debug
ProxyHTMLExtended On
ProxyPass /tv/ http://tv-3:8088/"]http://tv-3:8088/
ProxyHTMLURLMap http://tv-3:8088/"]http://tv-3:8088/ /tv

<Location /tv/>
ProxyPassreverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /tv/
ProxyHTMLURLMap /tv /tv
RequestHeader unset Accept-Encoding
</Location>


</VirtualHost>

Thanks
peter



--
http://egc.wa.edu.au"]
Peter de Groot
Eastern Goldfields College
Kalgoorlie 6430
Department of Education and Training
Phone 90801800 Fax 90801866 Mob 0418915312
http://det.wa.edu.au"]


Owen.Boyle at six-group

Nov 19, 2009, 1:50 AM

Post #2 of 10 (2064 views)
Permalink
RE: ProxyHTMLURLMap issues ... resent .. surely somebody can help with this [In reply to]

I think the reason no-one has replied is that no-one knows...

You are using a 3rd party module that many people will be unfamiliar with (eg, me) so it's not too surprising no-one feels able to respond. I did look up the module's homepage and noticed that the author offers to try to help out registered (ie, paying) users - is it worth £50?

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.




________________________________

From: Peter de Groot [mailto:peter.de.groot [at] det]
Sent: Thursday, November 19, 2009 10:12 AM
To: users [at] httpd
Subject: [users [at] http] ProxyHTMLURLMap issues ... resent .. surely somebody can help with this



Hi,

Please help ... been grinding away for days :-).


I am trying to reverse proxy to my internal web site from the outside.

The internal web site has CSS and Java and everything.

HOWEVER.

The internal web site uses a "CSS Hack" (??) to get around browser issues in IE.
When I browse the internal site directly I see this in the source.


<!--[if lt IE 7.0]>
<script src="/javascript/iepng.js"></script>
<![endif]-->
<!--[if lt IE 7.0]>
<link rel="stylesheet" href="/css/ie6fix.css" type="text/css"/>
<![endif]-->
<!--[if IE 7.0]>
<link rel="stylesheet" href="/css/ie7.css" type="text/css"/>
<![endif]-->



When I view the page source via the proxy.. this piece of the code is MISSING, and the apache log shows this

Non-HTML content; not inserting proxy-html filter, referer: http://intranet.fff.xxxxdu/tv/

I am presuming this is related to the error.

The displayed page is missing its "theme", which I am assuming is to do with the "hack"

How can I get ProxyHTMLMap to pass this content through.

Config snippet is


# ------- TV


# To support scripting events (with ProxyHTMLExtended On),
# you'll need to declare them too.

ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \
onmouseover onmousemove onmouseout onkeypress \
onkeydown onkeyup onfocus onblur onload \
onunload onsubmit onreset onselect onchange


ProxyHTMLLogVerbose on
LogLevel debug
ProxyHTMLExtended On
ProxyPass /tv/ http://tv-3:8088/
ProxyHTMLURLMap http://tv-3:8088/ /tv

<Location /tv/>
ProxyPassreverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /tv/
ProxyHTMLURLMap /tv /tv
RequestHeader unset Accept-Encoding
</Location>


</VirtualHost>

Thanks
peter




--

<http://egc.wa.edu.au>
Peter de Groot
Eastern Goldfields College
Kalgoorlie 6430
Department of Education and Training
Phone 90801800 Fax 90801866 Mob 0418915312
<http://det.wa.edu.au>

This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message.
The sender's company reserves the right to monitor all e-mail communications through their networks.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


Owen.Boyle at six-group

Nov 19, 2009, 1:53 AM

Post #3 of 10 (2051 views)
Permalink
RE: ProxyHTMLURLMap issues ... resent .. surely somebody can help with this [In reply to]

supplement to previous post:

This looks something like your problem:
http://apache.webthing.com/mod_proxy_html/faq.html#script

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.




________________________________

From: Peter de Groot [mailto:peter.de.groot [at] det]
Sent: Thursday, November 19, 2009 10:12 AM
To: users [at] httpd
Subject: [users [at] http] ProxyHTMLURLMap issues ... resent ..
surely somebody can help with this



Hi,

Please help ... been grinding away for days :-).


I am trying to reverse proxy to my internal web site from the
outside.

The internal web site has CSS and Java and everything.

HOWEVER.

The internal web site uses a "CSS Hack" (??) to get around
browser issues in IE.
When I browse the internal site directly I see this in the
source.


<!--[if lt IE 7.0]>
<script src="/javascript/iepng.js"></script>
<![endif]-->
<!--[if lt IE 7.0]>
<link rel="stylesheet" href="/css/ie6fix.css"
type="text/css"/>
<![endif]-->
<!--[if IE 7.0]>
<link rel="stylesheet" href="/css/ie7.css"
type="text/css"/>
<![endif]-->



When I view the page source via the proxy.. this piece of the
code is MISSING, and the apache log shows this

Non-HTML content; not inserting proxy-html filter, referer:
http://intranet.fff.xxxxdu/tv/

I am presuming this is related to the error.

The displayed page is missing its "theme", which I am assuming
is to do with the "hack"

How can I get ProxyHTMLMap to pass this content through.

Config snippet is


# ------- TV


# To support scripting events (with ProxyHTMLExtended
On),
# you'll need to declare them too.

ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \
onmouseover onmousemove onmouseout onkeypress \
onkeydown onkeyup onfocus onblur onload \
onunload onsubmit onreset onselect onchange


ProxyHTMLLogVerbose on
LogLevel debug
ProxyHTMLExtended On
ProxyPass /tv/ http://tv-3:8088/
ProxyHTMLURLMap http://tv-3:8088/ /tv

<Location /tv/>
ProxyPassreverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /tv/
ProxyHTMLURLMap /tv /tv
RequestHeader unset Accept-Encoding
</Location>


</VirtualHost>

Thanks
peter




--

<http://egc.wa.edu.au>
Peter de Groot
Eastern Goldfields College
Kalgoorlie 6430
Department of Education and Training
Phone 90801800 Fax 90801866 Mob 0418915312
<http://det.wa.edu.au>

This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message.
The sender's company reserves the right to monitor all e-mail communications through their networks.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


phil at philipwigg

Nov 19, 2009, 2:27 AM

Post #4 of 10 (2155 views)
Permalink
Re: ProxyHTMLURLMap issues ... resent .. surely somebody can help with this [In reply to]

Hi,

What version of mod_proxy_html are you using? You must have more code than
you posted or are you using an old version of mod_proxy_html?

In the distribution I have, there's a file called proxy_html.conf which
contains all the following example configuration. Do you not have this in
yours?

ProxyHTMLLinks a href
ProxyHTMLLinks area href
ProxyHTMLLinks link href
ProxyHTMLLinks img src longdesc usemap
ProxyHTMLLinks object classid codebase data usemap
ProxyHTMLLinks q cite
ProxyHTMLLinks blockquote cite
ProxyHTMLLinks ins cite
ProxyHTMLLinks del cite
ProxyHTMLLinks form action
ProxyHTMLLinks input src usemap
ProxyHTMLLinks head profile
ProxyHTMLLinks base href
ProxyHTMLLinks script src for

# To support scripting events (with ProxyHTMLExtended On),
# you'll need to declare them too.

ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \
onmouseover onmousemove onmouseout onkeypress \
onkeydown onkeyup onfocus onblur onload \
onunload onsubmit onreset onselect onchange

# If you need to support legacy (pre-1998, aka "transitional") HTML or
XHTML,
# you'll need to uncomment the following deprecated link attributes.
# Note that these are enabled in earlier mod_proxy_html versions
#
# ProxyHTMLLinks frame src longdesc
# ProxyHTMLLinks iframe src longdesc
# ProxyHTMLLinks body background
# ProxyHTMLLinks applet codebase

I've just tested mod_proxy_html and it seems to pass through the IE7 code
you supplied fine with me.

Cheers,
Phil.


nick at webthing

Nov 19, 2009, 4:46 AM

Post #5 of 10 (2044 views)
Permalink
Re: ProxyHTMLURLMap issues ... resent .. surely somebody can help with this [In reply to]

Boyle Owen wrote:
> I think the reason no-one has replied is that no-one knows...

Very likely true, though I'd add I don't think I've seen the post
you're replying to.

> The internal web site uses a "CSS Hack" (??) to get around browser issues in IE.
> When I browse the internal site directly I see this in the source.
>
>
> <!--

mod_proxy_html won't rewrite comments. It'll pass them through
untouched or strip them out - no other option.

> When I view the page source via the proxy.. this piece of the code is MISSING, and the apache log shows this
>
> Non-HTML content; not inserting proxy-html filter, referer: http://intranet.fff.xxxxdu/tv/

That's a non-HTML document (as determined by the Content-Type header),
not a comment in an HTML document.

--
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


nick at webthing

Nov 19, 2009, 5:02 AM

Post #6 of 10 (2044 views)
Permalink
Re: ProxyHTMLURLMap issues ... resent .. surely somebody can help with this [In reply to]

Nick Kew wrote:

>> <!--
>
> mod_proxy_html won't rewrite comments. It'll pass them through
> untouched or strip them out - no other option.

Come to think of it, that was a somewhat-legitimate feature request.
Maybe I'll add it to a future 3.2 release.

Meanwhile you might find it easier to revert to a non-markup-aware
filter such as mod_sed, and work your way through any "false
positives" that arise out of context-blind pattern matching.

--
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


peter.de.groot at det

Nov 19, 2009, 8:42 PM

Post #7 of 10 (2053 views)
Permalink
Re: ProxyHTMLURLMap issues ... resent .. surely somebody can help with this [In reply to]

I enabled comment pass through, and it still broke.
Would not pass through the comments ..
Non valid HTML .. if that is correct ?
More complete listing of the front of the source at the end

Regardless ..

So from what you are saying proxy_html does NOT filter comments,
even if I if they were formatted correctly.

The internal app is a variant of this of a TV recording software
http://www.cs.usyd.edu.au/%7Eefax/DVScheduler.html#DV%20Scheduler"]http://www.cs.usyd.edu.au/~efax/DVScheduler.html#DV%20Scheduler

Given that it appears that even if the format of the comments, is ok,
and this is problem. It would not help me anyway, as the current version of html_proxy
does not filter them........................

I am going to get back to the author of the app, and see what he can
do to change the source HTML.

Even if it causes probs with IE browsers :-)

Tx for the help

Here is a code from the top

<html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>DNTV Scheduler Pro System Status</title> <link rel="stylesheet" href="http://tv-3:8088/css/main.css"]/css/main.css" type="text/css"> <!--[if lt IE 7.0]> <script src="/javascript/iepng.js"></script> <![endif]--> <!--[if lt IE 7.0]> <link rel="stylesheet" href="/css/ie6fix.css" type="text/css"/> <![endif]--> <!--[if IE 7.0]> <link rel="stylesheet" href="/css/ie7.css" type="text/css"/> <![endif]--> <script src="http://tv-3:8088/javascript/main.js"]/javascript/main.js"></script><script> function selectChannel(obj) { var mode = obj.fullscreen; if (mode == false) { var cnt = obj.controls.audioLanguageCount; var index = obj.controls.currentAudioLanguageIndex; index = index + 1; if (index > cnt) index = 1; obj.controls.currentAudioLanguageIndex = inde etc ... etc ... etc

Nick Kew wrote:
Nick Kew wrote:

<!--

mod_proxy_html won't rewrite comments. It'll pass them through
untouched or strip them out - no other option.

Come to think of it, that was a somewhat-legitimate feature request.
Maybe I'll add it to a future 3.2 release.

Meanwhile you might find it easier to revert to a non-markup-aware
filter such as mod_sed, and work your way through any "false
positives" that arise out of context-blind pattern matching.


--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe [at] httpd " from the digest: users-digest-unsubscribe [at] httpd For additional commands, e-mail: users-help [at] httpd


tevans.uk at googlemail

Nov 20, 2009, 1:30 AM

Post #8 of 10 (2032 views)
Permalink
Re: ProxyHTMLURLMap issues ... resent .. surely somebody can help with this [In reply to]

On Fri, Nov 20, 2009 at 4:42 AM, Peter de Groot <
peter.de.groot [at] det> wrote:

>
> I am going to get back to the author of the app, and see what he can
> do to change the source HTML.
>

The last three replies *were* from the author :)

Cheers

Tom


tevans.uk at googlemail

Nov 20, 2009, 1:31 AM

Post #9 of 10 (2027 views)
Permalink
Re: ProxyHTMLURLMap issues ... resent .. surely somebody can help with this [In reply to]

On Fri, Nov 20, 2009 at 9:30 AM, Tom Evans <tevans.uk [at] googlemail> wrote:

> On Fri, Nov 20, 2009 at 4:42 AM, Peter de Groot <
> peter.de.groot [at] det> wrote:
>
>>
>> I am going to get back to the author of the app, and see what he can
>> do to change the source HTML.
>>
>
> The last three replies *were* from the author :)
>
> Cheers
>
> Tom
>

You know when you click reply, and then you realize you misunderstood what
the other guy said....

++coffee;


nick at webthing

Nov 20, 2009, 2:27 AM

Post #10 of 10 (2023 views)
Permalink
Re: ProxyHTMLURLMap issues ... resent .. surely somebody can help with this [In reply to]

On 20 Nov 2009, at 09:31, Tom Evans wrote:

> The last three replies *were* from the author :)
>
> Cheers
>
> Tom
>
> You know when you click reply, and then you realize you misunderstood what the other guy said....

Lol!

I read your previous reply the way you wrote it, and had to figure this one out!

> ++coffee;

Good idea.

p.s. to the OP, what happens if you run your HTML through xmllint --html?

If the "comment" disappears, it's too broken for libxml2. If the comment
survives xmllint but gets eaten by mod_proxy_html, then I should be
investigating and hopefully fixing something!

--
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.