mod_proxy_html rewriting query string portion of link

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm attempting to use mod_proxy_html to rewrite internal URL's to the
corresponding external URL.  It seems to be working for the most part,
but I am having trouble getting the query string portion of a URL to be
processed.

My config:

  ProxyRequests off
  ProxyPreserveHost off

  ProxyHTMLLogVerbose On
  ProxyHTMLExtended On
  #SetEnv PROXY_HTML_FORCE

  # Custom links for use with mod_proxy_html
  ProxyHTMLLinks input value

  ProxyPass / http://st2.esri.com:8080/BAO30/

  ProxyHTMLURLMap http://st2.esri.com:8080/BAO30 http://external.esri.com [l]
  ProxyHTMLURLMap ^(https://.*)http://st2.esri.com:8080/BAO30(.*)$ $1http://external.esri.com$2 [R,l]

  <Location />
    ProxyPassReverse http://st2.esri.com:8080/BAO30/
    SetOutputFilter proxy-html
    ProxyHTMLURLMap /BAO30 /
    RequestHeader unset Accept-Encoding
  </Location>

I have ProxyHTMLLinks a href set in another configuration file.  The HTML
itself contains a line like this:

      <p class="acct"><a href="https://host.esri.com?fuseaction=LoginForgot;ReturnURL=http://st2.esri.com:8080/BAO30/main.map&amp;FailURL=http://st2.esri.com:8080/BAO30/main.map";>Forgot your password?</a></p>
                                        
The st2.esri.com:8080/BAO30 is not getting rewritten in this URL.
Should this work?  I'm not sure if mod_html_proxy will handle arguments
to the URL (I don't see why it wouldn't).  Maybe my regex is confused
because of the multiple occurrences.

Any thoughts?

Ray

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux