httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Saunders" <jackmin...@gmail.com>
Subject [users@httpd] mod_proxy_html, Rewriting form values
Date Tue, 10 Jul 2007 22:32:01 GMT
Needing to rewrite the following form value:
<input name="RedirectTo"
value="/quickplace/quickplace/main.nsf?OpenDatabase" type="hidden">

To:
<input name="RedirectTo"
value="/qp/quickplace/quickplace/main.nsf?OpenDatabase" type="hidden">


Current Configuration:
ProxyPreserveHost On
ProxyPass /qp/ http://server.abc.com/
ProxyHTMLURLMap http://server.abc.com /qp
<Location /qp/>
        RequestHeader    unset  Accept-Encoding
        ProxyPassReverse /
        SetOutputFilter proxy-html
        ProxyHTMLURLMap  /      /qp/
        ProxyHTMLURLMap  /quickplace      /qp/
        ProxyHTMLURLMap  /qp  /qp
        ProxyHTMLLogVerbose On
</Location>

Have also tried the following configuration.  Which rewrites alot of
javascript code and never updates the form value.

ProxyPreserveHost On
ProxyPass /qp/ http://server.abc.com/
ProxyHTMLURLMap http://server.abc.com /qp
<Location /qp/>
        RequestHeader    unset  Accept-Encoding
        ProxyPassReverse /
        SetOutputFilter proxy-html
        ProxyHTMLURLMap  /      /qp/
        ProxyHTMLURLMap  /quickplace      /qp/
        ProxyHTMLURLMap  /qp  /qp
        ProxyHTMLExtended On
        ProxyHTMLLogVerbose On
</Location>

Can mod_proxy_html handle rewriting values inside of a form?  I have a
feeling my issue is with the below error in the Apache log:

Non-HTML content; not inserting proxy-html filter, referer:
http://server.abc.com/qp/quickplace/quickplace/main.nsf?OpenDatabase&Login

Doing a packet trace shows the content-type is not defined.  Not sure
what can be done at this point.

Thanks,
Jack

---------------------------------------------------------------------
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


Mime
View raw message