Nginx Substitutions Filter problem

Martronic SA martronic at martronic.ch
Tue Sep 27 06:41:33 UTC 2011


Hello,

We are using the "Substitutions Filter module"
to replace html content in our pages.

Our configuration is :

location /{
subs_filter_types text/html text/xml;
subs_filter 'http://bale.hopla.net/bons-plans' 
'http://bons-plans.hopla.net';
subs_filter 'id="portal-logo" href="http://bale.hopla.net"' 
'id="portal-logo" href="http://www.hopla.net"';
}

The first substitution is working, but the second not.
Are we missing something? Is the "space" supported in substitution module?

Thank you for your help!

Martronic SA

nginx -V
nginx: nginx version: nginx/1.1.4
nginx: built by gcc 4.3.2 (Debian 4.3.2-1.1)
nginx: TLS SNI support enabled
nginx: configure arguments: --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid
--lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log
--with-http_dav_module --http-client-body-temp-path=/var/lib/nginx/body --with-http_ssl_module
--http-proxy-temp-path=/var/lib/nginx/proxy --with-http_stub_status_module
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi
--add-module=/var/lib/substitutions4nginx-read-only





More information about the nginx mailing list