You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jack Saunders <ja...@gmail.com> on 2007/07/11 00:32:01 UTC
[users@httpd] mod_proxy_html, Rewriting form values
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