| Nginx-ru mailing list archive (nginx-ru@sysoev.ru) [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
 nginx 0.6.32+ phpfcgi +ssi+ Blitz template (набл юдение)
 Данное сообщение не вопрос, а скорее констатация факта - наблюдалось 
зацыкливание на последней SSI директиве при отправки запроса post -ом  
на несуществующий URL приэтом обработка вызываемой страницы 
производилась PHP c расширением Blitz Template (при отключении оного 
никаких проблем) - это было из-за того что пост запросы надо было 
редиректить на /index.php реврайтом потому как без этого получали 405
Проблема исчезла после установки версии 0.7.17 и отказа от rewrite на 
/index.php (если оставить реврайт проблема остаётся)
 
обе версии скомпилены с
configure arguments: --prefix=/usr --conf-path=/etc/nginx/nginx.conf 
--error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid 
--lock-path=/var/run/nginx.lock --with-rtsig_module --with-select_module 
--with-poll_module --with-http_ssl_module --with-http_realip_module 
--with-http_addition_module --with-http_sub_module 
--with-http_dav_module --with-http_flv_module 
--with-http_gzip_static_module --with-http_stub_status_module 
--http-log-path=/var/log/nginx/access.log 
--http-client-body-temp-path=/var/tmp/nginx/client_body_tmp 
--http-proxy-temp-path=/var/tmp/nginx/proxy_body_tmp 
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_body_tmp --with-debug 
конфиги (пых запущен через spawn)
server {
   listen              80;
   server_name         host.lo;
   charset             utf-8;
   gzip                on;
   ssi                 on;
   error_log           /www/host.lo/logs/nginx.error.log debug;
   access_log          /www/host.lo/logs/nginx.access.log;
   location    @phpfcgi{
       fastcgi_pass    127.0.0.1:8080;
       include         /etc/nginx/fastcgi_params;
       fastcgi_param   SCRIPT_FILENAME /www/host.lo/htdocs/index.php;
   }
   location ~ \.(php|php/.*)$ {
       fastcgi_pass    127.0.0.1:8080;
       include         /etc/nginx/fastcgi_params;
fastcgi_param   SCRIPT_FILENAME 
/www/host.lo/htdocs$fastcgi_script_name;
       }
   location /tmp_images {
       root /www/host.lo/var/tmp;
       }
   location /images {
       ssi             off;
       gzip            off;
rewrite '^/images/([0-9]+)(\d{2})(\d{2})\.(jpg|jpeg|gif|png)' 
/images/photos/$3/$2/$1$2$3_70x60.$4 last;
       rewrite 
'^/images/big/([0-9]+)(\d{2})(\d{2})\.(jpg|jpeg|gif|png)' 
/images/photos/$3/$2/$1$2$3_440x330.$4 last;
       rewrite 
'^/images/medium/([0-9]+)(\d{2})(\d{2})\.(jpg|jpeg|gif|png)' 
/images/photos/$3/$2/$1$2$3_80x75.$4 last;
       alias           /var/www/img.host.lo;
       error_page      404 = /i/theme/default/img/nophoto.gif;
       }
   location / {
       if ( $request_method = "POST" ){
           rewrite ^(/.*)     /index.php;
       }
       error_page      404 = @phpfcgi;
       root   /www/host.lo/htdocs;
       index   index.shtml index.html index.htm index.php;
   }
}
 |