mod_proxy + mod_ext_filter

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

 



I'm trying to use filters to replace html body of a page through a reverse proxy.

This are my Apache settings :

<VirtualHost *:80>
ServerName myProxy.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined 
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ExtFilterDefine fixtext mode=output intype=text/html \
cmd="/bin/sed s/aword/replacement/g" 
<Location />
ProxyPass http://mySite.net/
ProxyPassReverse http://mySite.net/
SetOutputFilter fixtext
</Location>
</VirtualHost>

If "mysite.net" is on the same server as "myProxy.net" it works but it doesn't work if they are on different servers.

What am I doing wrong ?

Thanks 

--
Tristan ZWINGELSTEIN

17 Rue Principale
68780 Soppe-le-Bas

00 41 76 819 18 74
03 89 38 50 17

[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