atom feed11 messages in ru.sysoev.nginx-ruRe: Массив $_POST приходит пустой
FromSent OnAttachments
AlexanderDec 18, 2008 3:48 pm 
Igor SysoevDec 18, 2008 11:17 pm 
AlexanderDec 19, 2008 3:03 am 
Igor SysoevDec 19, 2008 3:20 am 
Serguei V. MelekhovDec 20, 2008 4:48 am 
Igor SysoevDec 20, 2008 5:16 am 
Serguei V. MelekhovDec 20, 2008 5:34 am 
Serguei V. MelekhovDec 22, 2008 12:55 pm 
Serguei V. MelekhovDec 22, 2008 1:18 pm 
DmitryDec 22, 2008 1:21 pm 
Igor SysoevDec 23, 2008 12:19 am 
Subject:Re: Массив $_POST приходит пустой
From:Igor Sysoev (is@rambler-co.ru)
Date:Dec 19, 2008 3:20:20 am
List:ru.sysoev.nginx-ru

On Fri, Dec 19, 2008 at 01:03:51PM +0200, Alexander wrote:

Тем не менее, после всех изменений, массив $_POST все так-же пуст

Нужно убрать один лишний

location / { error_page 404 = @magento; }

Как должен обрабатываться /js/index.php/x.js ? Используется ли он в /admin/ ?

server { listen 128.0.0.9:8080; server_name www.server.com; root /home/alex/public_html/server.com; index index.php

gzip on; gzip_min_length 1000; gzip_buffers 8 8k; gzip_proxied any; gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;

access_log /var/log/nginx/electricalhub.access.log; error_log /home/alex/www/server.com/nginx.error.log debug;

location @js { include /etc/nginx/fastcgi_params; fastcgi_param SCRIPT_FILENAME
/home/alex/public_html/server.com/index.php;#$fastcgi_script_name; rewrite x.js(.*) /js/index.php last; }

location = /js/index.php/x.js { error_page 404 = @js; }

location / { error_page 404 = @magento; }

location @magento { fastcgi_pass 127.0.0.1:8888; fastcgi_param SCRIPT_FILENAME /home/alex/public_html/server.com/index.php; include /etc/nginx/fastcgi_params; }

location / { error_page 404 = @magento; }

# media location ~* \.(png|gif|jpg|jpeg|css|js|swf|ico)$ { root /home/alex/public_html/server.com/; access_log off; expires max; break; }

# redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /var/www/nginx-default; }

# deny access to .htaccess files, if Apache's document root # concurs with nginx's one # location ~ /\.ht { deny all; } }

On 19 декабря 2008, Igor Sysoev wrote:

location / {            error_page 404 = @magento;        }

       location @magento {            fastcgi_pass   ...            fastcgi_param  SCRIPT_FILENAME  /home/alex/public_html/server.com/index.php; include /etc/nginx/fastcgi_params;        }