You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Earl Chew <ea...@yahoo.com> on 2007/06/13 19:15:49 UTC
[users@httpd] Can mod_proxy_html rewrite
I'm using mod_proxy_html and I've got a page with the following content:
<li style="background-image: url('/galleries/1/thumbs/Ferry ride-100x80.JPG')">
All my attempts to have mod_proxy_html rewrite /galleries/ to /public/galleries/
have failed. The basic pattern I'm using is:
ProxyHTMLExtended On
ProxyHTMLURLMap / /public/
Is there a standard option to have mod_proxy_html rewrite this link?
I suspect the answer is no.
I've looked at the source, and see:
static const char* href[] = { "href", NULL } ;
static const char* cite[] = { "cite", NULL } ;
... snip ...
static const elt_t linked_elts[] = {
{ "a" , href } ,
{ "img" , imgattr } ,
{ "form", action } ,
... etc ...
If I read this correctly, mod_proxy_html is parsing the HTML to figure
out which sections to look in for URLs to rewrite. To have mod_proxy_html
rewrite my /galleries/ URL, I'm going to have to add "li" and "style" to
the list of elements and attributes.
Can anyone provide any further guidance here?
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
[users@httpd] mod_proxy_html fix (Re: [users@httpd] Can mod_proxy_html rewrite
)
Posted by Nick Kew <ni...@webthing.com>.
On Thu, 14 Jun 2007 09:12:27 +0100
Nick Kew <ni...@webthing.com> wrote:
> On Wed, 13 Jun 2007 21:50:15 -0700 (PDT)
> Earl Chew <ea...@yahoo.com> wrote:
[ this is directed to you and everyone else who has tried
or is willing to try mod_proxy_html 3 ]
>
> > Downloaded and installed 3.0 version 84. Dropped in as a replacement
> > with no change in directives (except to Include proxy_html.conf
> > unchanged) I get seg fault exits from apache children.
> >
> > What can I do to get you more detailed error reports?
>
> Can you get a backtrace from the crash? Get a coredump and
> run gdb on it (if that's gobbledygook to you, then never mind).
[chop]
Coincidentally I've just seen this in the context of a client's
setup I have access to. It was a "duh" moment, as the bug is one
I've seen and fixed in other filter modules in the past.
Now fixed in svn.
Please try again with the current update of mod_proxy_html 3.
--
Nick Kew
Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Can mod_proxy_html rewrite
Posted by Nick Kew <ni...@webthing.com>.
On Wed, 13 Jun 2007 21:50:15 -0700 (PDT)
Earl Chew <ea...@yahoo.com> wrote:
> Downloaded and installed 3.0 version 84. Dropped in as a replacement
> with no change in directives (except to Include proxy_html.conf
> unchanged) I get seg fault exits from apache children.
>
> What can I do to get you more detailed error reports?
Can you get a backtrace from the crash? Get a coredump and
run gdb on it (if that's gobbledygook to you, then never mind).
Apart from that, I'd be interested to see a page that causes it,
together with your proxy_html config.
I'm sure there's a segfaulting bug there (yours isn't the first
report of it), but I've been unable to reproduce it either on
my own or my clients' server. I
--
Nick Kew
Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Can mod_proxy_html rewrite
Posted by Earl Chew <ea...@yahoo.com>.
Downloaded and installed 3.0 version 84. Dropped in as a replacement
with no change in directives (except to Include proxy_html.conf unchanged)
I get seg fault exits from apache children.
What can I do to get you more detailed error reports?
Nick Kew <ni...@webthing.com> wrote: On Wed, 13 Jun 2007 10:15:49 -0700 (PDT)
Earl Chew wrote:
> If I read this correctly, mod_proxy_html is parsing the HTML to figure
> out which sections to look in for URLs to rewrite. To have
> mod_proxy_html rewrite my /galleries/ URL, I'm going to have to add
> "li" and "style" to the list of elements and attributes.
No, you'd need to add "style" to the list of events. That's because
it isn't a URL, but just contains text that may include URLs.
If you use mod_proxy_html 3, all that is delegated to httpd.conf,
so you can customise it to taste.
--
Nick Kew
Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.
Re: [users@httpd] Can mod_proxy_html rewrite
Posted by Nick Kew <ni...@webthing.com>.
On Wed, 13 Jun 2007 10:15:49 -0700 (PDT)
Earl Chew <ea...@yahoo.com> wrote:
> If I read this correctly, mod_proxy_html is parsing the HTML to figure
> out which sections to look in for URLs to rewrite. To have
> mod_proxy_html rewrite my /galleries/ URL, I'm going to have to add
> "li" and "style" to the list of elements and attributes.
No, you'd need to add "style" to the list of events. That's because
it isn't a URL, but just contains text that may include URLs.
If you use mod_proxy_html 3, all that is delegated to httpd.conf,
so you can customise it to taste.
--
Nick Kew
Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Can mod_proxy_html rewrite
Posted by Joshua Slive <jo...@slive.ca>.
On 6/13/07, Earl Chew <ea...@yahoo.com> wrote:
> I'm using mod_proxy_html and I've got a page with the following content:
>
> <li style="background-image: url('/galleries/1/thumbs/Ferry
> ride-100x80.JPG')">
>
> If I read this correctly, mod_proxy_html is parsing the HTML to figure
> out which sections to look in for URLs to rewrite. To have mod_proxy_html
> rewrite my /galleries/ URL, I'm going to have to add "li" and "style" to
> the list of elements and attributes.
>
> Can anyone provide any further guidance here?
I don't use mod_proxy_html myself, but from the docs and examples, it
seems you need to use ProxyHTMLEvents and ProxyHTMLExtended On. See:
http://apache.webthing.com/svn/apache/filters/proxy_html/proxy_html.conf
http://apache.webthing.com/mod_proxy_html/config.html
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org