Problem with Substitutions NginxHttpSubsModule

Weibin Yao nbubingo at gmail.com
Wed Aug 11 10:41:06 MSD 2010


Martronic SA at 2010-8-11 14:17 wrote:
> 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_name www.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_pass http://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 show me the debug.log? And what's your Nginx's version?
Thanks.
>
> Could you help me with that?
>
> Thank you very much
>
> Martronic SA
> Martial Moret
> ------------------------------------------------------------------------
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>   


-- 
Weibin Yao




More information about the nginx mailing list