Массив $_POST приходит пустой
Alexander
alexweb at gmail.com
Fri Dec 19 14:03:51 MSK 2008
Тем не менее, после всех изменений, массив $_POST все так-же пуст
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;
> }
More information about the nginx-ru
mailing list