[users@httpd] mod_proxy_html does not like meta tags

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

 




Hi,
I'm trying to configure a reverse proxy using apache
httpd-2.0.46-25.ent.rpm
I installed mod_proxy_html and tried to follow the installation
instructions on http://www.apacheweek.com/features/reverseproxies

As a result; my httpd.conf looks like this :

< LoadFile   /usr/lib/libxml2.so
< LoadModule proxy_html_module   modules/mod_proxy_html.so
< ServerName DUMBO:80
< NameVirtualHost 192.168.102.8:80
< <VirtualHost 192.168.102.8:80>
<     DocumentRoot /var/www/tmp
<     ServerName external.example.com
<     ErrorLog logs/error_log
<     CustomLog logs/access_log common
<     ProxyRequests Off
<     ProxyPass         /   http://internal.example.com/
<     ProxyPassReverse  /   http://internal.example.com/
<     SetOutputFilter   proxy-html
<     ProxyHTMLExtended On
<     ProxyHTMLMeta     On
<     ProxyHTMLURLMap   http://internal.example.com
http://external.example.com
<     ProxyHTMLURLMap   http://internal.example.com
http://external.example.com  Ri
<     ProxyHTMLURLMap   url\(http://internal.example.com([^\)]*)\)
url(http://external.example.com$1)  Ri
< </VirtualHost>

Good news : the reverse proxy is working fine :-)
Even re-writing of the returning HTML code seems to work.
eg :
  <a href="test/test_01.html">relative</a>
  <a href="/test/test_01.html">relative with slash</a>
  <a href="http://internal.example.com/test/test_01.html";>absolute</a>
is nicely translated in :
  <a href="test/test_01.html">relative</a>
  <a href="/test/test_01.html">relative with slash</a>
  <a href="http://external.example.com/test/test_01.html";>absolute</a>

BUT ... dispite the regexp-mappings and ProxyHTML-parameters I tried to
set; Some URL-texts are not translated :
eg:
  <meta http-equiv="Refresh"
content="5;URL=http://internal.example.com/mail/koen.vdvelde.nsf?opendatabase";>

will NOT be translated in :
  <meta http-equiv="Refresh"
  content="5;URL=http://external.example.com/mail/koen.vdvelde.nsf?opendatabase";>


Any idea what I am doing wrong ?

thanks in advance,

Koen.


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