I just change the default port 80 to 8869 and the reprace content started to work!<br>Then I wrote the port to 80 again and the filter is still working. Incredible...<br><br><div class="gmail_quote">2012/10/22 Jeszenszky Zoltán <span dir="ltr"><<a href="mailto:jeszenszky.zoltan@gmail.com" target="_blank">jeszenszky.zoltan@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here is the config, replace content doesn't work:<br><br>#user nobody;<br>worker_processes 1;<br><br>#error_log logs/error.log;<br>
#error_log logs/error.log notice;<br>#error_log logs/error.log info;<br>error_log /var/log/nginx/error.log debug;<br>
<br>#pid logs/nginx.pid;<br><br><br>events {<br> worker_connections 1024;<br>}<br><br><br>http {<br> include mime.types;<br> default_type application/octet-stream;<br><br> #log_format main '$remote_addr - $remote_user [$time_local] "$request" '<br>
# '$status $body_bytes_sent "$http_referer" '<br> # '"$http_user_agent" "$http_x_forwarded_for"';<br><br> #access_log logs/access.log main;<br>
<br> sendfile on;<br> #tcp_nopush on;<br><br> #keepalive_timeout 0;<br> keepalive_timeout 65;<br><br> gzip off;<br><br> server {<br> error_log /var/log/nginx/error.log debug;<br> listen 80;<br>
server_name localhost;<br><br> #charset koi8-r;<br><br> #access_log logs/host.access.log main;<br><br> location / {<br> root html;<br> index index.html index.htm;<br>
sub_filter nginx korte;<br> sub_filter_once off;<br> subs_filter_types text/html text/css text/xml;<br> subs_filter nginx 'newstring' i;<br> }<br><br> #error_page 404 /404.html;<br>
<br> # redirect server error pages to the static page /50x.html<br> #<br> error_page 500 502 503 504 /50x.html;<br> location = /50x.html {<br> root html;<br> }<br><br> # proxy the PHP scripts to Apache listening on <a href="http://127.0.0.1:80" target="_blank">127.0.0.1:80</a><br>
#<br> #location ~ \.php$ {<br> # proxy_pass <a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>;<br> #}<br><br> # pass the PHP scripts to FastCGI server listening on <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a><br>
#<br> #location ~ \.php$ {<br> # root html;<br> # fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br> # fastcgi_index index.php;<br>
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;<br>
# include fastcgi_params;<br> #}<br><br> # deny access to .htaccess files, if Apache's document root<br> # concurs with nginx's one<br> #<br> #location ~ /\.ht {<br>
# deny all;<br> #}<br> }<br><br><br> # another virtual host using mix of IP-, name-, and port-based configuration<br> #<br> #server {<br> # listen 8000;<br> # listen somename:8080;<br>
# server_name somename alias another.alias;<br><br> # location / {<br> # root html;<br> # index index.html index.htm;<br> # }<br> #}<br><br><br> # HTTPS server<br> #<br>
#server {<br> # listen 443;<br> # server_name localhost;<br><br> # ssl on;<br> # ssl_certificate cert.pem;<br> # ssl_certificate_key cert.key;<br><br> # ssl_session_timeout 5m;<br>
<br> # ssl_protocols SSLv2 SSLv3 TLSv1;<br> # ssl_ciphers HIGH:!aNULL:!MD5;<br> # ssl_prefer_server_ciphers on;<br><br> # location / {<br> # root html;<br> # index index.html index.htm;<br>
# }<br> #}<br><br>}<br><br><br><div class="gmail_quote">2012/10/21 Valentin V. Bartenev <span dir="ltr"><<a href="mailto:ne@vbart.ru" target="_blank">ne@vbart.ru</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sunday 21 October 2012 15:41:26 Jeszenszky Zoltán wrote:<br>
> Why I can not replace string in pages?<br>
<br>
Probably you have a problem in your config, but since you have provided only<br>
small part of it, then it's impossible to determine.<br>
<br>
> Can I debug what happening? Help me, please.<br>
<br>
Yes, you can: <a href="http://nginx.org/en/docs/debugging_log.html" target="_blank">http://nginx.org/en/docs/debugging_log.html</a><br>
<br>
wbr, Valentin V. Bartenev<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
<a href="http://nginx.com/support.html" target="_blank">http://nginx.com/support.html</a><br>
<a href="http://nginx.org/en/donation.html" target="_blank">http://nginx.org/en/donation.html</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Üdvözlettel / Best Regards,<div>Unix and TSM administrator</div><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Üdvözlettel / Best Regards,<div>Unix and TSM administrator</div><br>