eval module 1.0.1

Anton Bessonov exelib на googlemail.com
Сб Июн 19 19:41:48 MSD 2010


Здравствуйте!

eval 1.0.2 за 14. февраля, nginx 8.41.

вот такая конфигурация:

    server {
        listen            80;
        server_name        ~^(?P<subdomain>.*)\.domain$;

        eval_escalate on;
        location / {

            eval $var {
                proxy_method GET;
                proxy_pass_request_body off;
                proxy_set_header Host $http_host;
                proxy_pass http://127.0.0.1:12345/?subdomain=$subdomain;
            }

            proxy_intercept_errors on;
            proxy_set_header Host $http_host;
            proxy_buffering off;
            proxy_pass http://127.0.0.1:12344;
        }
    }


    server {
        listen 127.0.0.1:12345;
        location / {
            fastcgi_cache off;
            fastcgi_pass   127.0.0.1:9000;

            include /home/toxa/sources/nginx/fcgi.conf;
            fastcgi_param  SCRIPT_FILENAME  /home/sources/test.php;
        }
    }

глухнет при POST, потом в логе:

2010/06/19 17:33:51 [error] 24363#0: *1188 upstream timed out (110: 
Connection timed out) while reading response header from upstream, 
client: 127.0.0.1, server: ~^(?P<subdomain>.*)\.domain$, request: "POST 
/index.php?action=login2 HTTP/1.1", subrequest: "/index.php", upstream: 
"http://127.0.0.1:12345/?subdomain=test12", host: "test12.domain", 
referrer: 
"http://test12.domain/index.php?PHPSESSID=30cee0fdb82d0939e7acf7c418bbfa44&"

и потом на фронте

504 Gateway Time-out

без eval_escalate on предлогает загрузить пустой index.php.



Подробная информация о списке рассылки nginx-ru