Welcome! Log In Create A New Profile

Advanced

Problem with Substitutions NginxHttpSubsModule

August 11, 2010 02:22AM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Problem with Substitutions NginxHttpSubsModule

martro August 11, 2010 02:22AM

Re: Problem with Substitutions NginxHttpSubsModule

Weibin Yao August 11, 2010 02:48AM

Re: Problem with Substitutions NginxHttpSubsModule

martro August 11, 2010 03:00AM

Re: Problem with Substitutions NginxHttpSubsModule

Weibin Yao August 11, 2010 03:32AM

Re: Problem with Substitutions NginxHttpSubsModule

martro August 11, 2010 04:10AM

Re: Problem with Substitutions NginxHttpSubsModule

Weibin Yao August 11, 2010 04:24AM

Re: Problem with Substitutions NginxHttpSubsModule

martro August 11, 2010 04:34AM

Re: Problem with Substitutions NginxHttpSubsModule

martro August 11, 2010 11:52AM

Re: Problem with Substitutions NginxHttpSubsModule

Weibin Yao August 11, 2010 10:04PM

Re: Problem with Substitutions NginxHttpSubsModule

martro August 12, 2010 12:04PM

Re: Problem with Substitutions NginxHttpSubsModule

Weibin Yao August 12, 2010 11:48PM

:Problem with cookies Rewriting rules

martro August 17, 2010 11:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 158
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready