Problem with Substitutions NginxHttpSubsModule

Martronic SA martronic at martronic.ch
Wed Aug 11 10:17:13 MSD 2010


I m' having problems with Substitutions NginxHttpSubsModule,
Everything seems to be well installed, but it doesn't substitute 
anything in the html pages.

Here is my config file:

********************************************
  upstream hoplanet {

     ip_hash;
     server 94.23.227.152:9190 max_fails=6 fail_timeout=60s;
     server 94.23.227.152:9191 max_fails=6 fail_timeout=60s;
     server 94.23.227.152:9192 max_fails=6 fail_timeout=60s;
     server 94.23.227.152:9193 max_fails=6 fail_timeout=60s;
   }

   server {
     listen 8201;
     server_namewww.hopla-net.com  hopla-net.com;
     access_log /home/awstats/hoplanet/access.log varnish;
     access_log /dev/null;

     if ($host ~* ^hopla-net\.com$) {
        rewrite ^(.*)http://www.hopla-net.com$1  permanent;
        break;
     }


     rewrite ^/(.*)/VirtualHostBase/http/www.hopla-net.com:80/hopla-net/VirtualHostRoot/$1 last;

     location / {
       subs_filter_types text/html text/xml;
       subs_filter chantent blabla;
       proxy_passhttp://hoplanet;
     }

   }
****************************************************

I've desactivated Varnish and request directly to nginx, but 'chantent' in my pages are not substitued.

I wonder if substitution doesn't work on proxied data???

Could you help me with that?

Thank you very much

Martronic SA
Martial Moret

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100811/63bc360f/attachment-0001.html>


More information about the nginx mailing list