Problem with Substitutions NginxHttpSubsModule

Martronic SA martronic at martronic.ch
Wed Aug 11 10:54:03 MSD 2010


here is a part error.log but there was nothing particluar in it:

*********************************************

2010/08/10 18:07:16 [notice] 5917#0: *2003 "^hopla-net\.com$" does not match
"www.hopla-net.com", client: 212.74.132.20, server:www.hopla-net.com, request: "GET
/bale/sitemap.xml HTTP/1.1", host: "www.hopla-net.com:8201"
2010/08/10 18:07:16 [notice] 5917#0: *2003 "^/(.*)" matches "/bale/sitemap.xml", client:
212.74.132.20, server:www.hopla-net.com, request: "GET /bale/sitemap.xml HTTP/1.1", host:
"www.hopla-net.com:8201"
2010/08/10 18:07:16 [notice] 5917#0: *2003 rewritten data:
"/VirtualHostBase/http/www.hopla-net.com:80/hopla-net/VirtualHostRoot/bale/sitemap.xml", args:
"", client: 212.74.132.20, server:www.hopla-net.com, request: "GET /bale/sitemap.xml
HTTP/1.1", host: "www.hopla-net.com:8201"


************************************************

This also:
************************************************

2010/08/10 16:55:28 [emerg] 20796#0: bind() to 0.0.0.0:8201 failed (98: Address already in use)
2010/08/10 16:55:28 [emerg] 20796#0: still could not bind()
2010/08/10 17:01:07 [error] 20907#0: *176 open() "/usr/html/w00tw00t.at.ISC.SANS.DFind:)"
failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET
/w00tw00t.at.ISC.SANS.DFind:) HTTP/1.1", host: "127.0.0.1"
2010/08/10 17:05:57 [alert] 20903#0: worker process 20904 exited on signal 9
2010/08/10 17:05:57 [alert] 20903#0: worker process 20907 exited on signal 9
2010/08/10 17:20:38 [error] 24225#0: *1468 open() "/usr/html/w00tw00t.at.ISC.SANS.DFind:)"
failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET
/w00tw00t.at.ISC.SANS.DFind:) HTTP/1.1", host: "127.0.0.1"
2010/08/10 17:21:28 [error] 24225#0: *1577 open() "/usr/html/w00tw00t.at.ISC.SANS.DFind:)"
failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET
/w00tw00t.at.ISC.SANS.DFind:) HTTP/1.1", host: "127.0.0.1"
2010/08/10 17:24:20 [error] 28899#0: *137 open() "/usr/html/w00tw00t.at.ISC.SANS.DFind:)"
failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET
/w00tw00t.at.ISC.SANS.DFind:) HTTP/1.1", host: "127.0.0.1"
2010/08/10 17:38:25 [error] 28898#0: *1146 open() "/usr/html/w00tw00t.at.ISC.SANS.DFind:)"
failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET
/w00tw00t.at.ISC.SANS.DFind:) HTTP/1.1", host: "127.0.0.1"
2010/08/10 17:48:28 [error] 4386#0: *142 open() "/usr/html/w00tw00t.at.ISC.SANS.DFind:)"
failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET
/w00tw00t.at.ISC.SANS.DFind:) HTTP/1.1", host: "127.0.0.1"
***********************************************************


Here is the summary with our nginx version:

*************************************************

/usr/sbin/nginx -V
nginx version: nginx/0.7.67
built by gcc 4.3.2 (Debian 4.3.2-1.1)
TLS SNI support enabled
configure arguments: --prefix=/usr --conf-path=/etc/nginx/nginx.conf
--http-log-path=/var/log/nginx/access_log --error-log-path=/var/log/nginx/error_log
--pid-path=/var/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body
--http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi
--with-md5-asm --with-md5=/usr/include --with-sha1-asm --with-sha1=/usr/include
--with-http_realip_module --with-http_ssl_module --with-http_stub_status_module
--with-http_ssl_module --with-http_flv_module --with-http_gzip_static_module
--add-module=/root/substitutions4nginx

*************************************************

Thank you!

Martronic SA
Martial Moret


Le 11.08.2010 08:41, Weibin Yao a écrit :
> 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
>
>



More information about the nginx mailing list