Массив $_POST приходит пустой

Igor Sysoev is at rambler-co.ru
Fri Dec 19 14:20:20 MSK 2008


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;
> >        }
> 
> 

-- 
Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list