Welcome! Log In Create A New Profile

Advanced

POST пуст (whmcs)

May 01, 2011 05:53AM
Поставил nginx admin, плагин для cPanel (набор скриптов для генерации конфигов итд.). В качестве фронтенда к apache.

Обнаружилась такая проблема, помогите решить пожалуйста.

Воспроизводимость: Заказываем в whmcs продукт -> переходим к странице выбора оплаты -> жмём кнопку -> получаем пустую страницу.

В логе строка: - - [27/Apr/2011:19:42:02 +0700] "POST /cart.php?a=add HTTP/1.1" 200 0 "http://www.domain.ru/cart.php" [^] "Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15 WebMoney Advisor"
обратите внимание на размер, он нулевой.

Конфиги:
server {
listen domain:80;
server_name domain.ru;

access_log /usr/local/apache/domlogs/doman.ru combined;
error_log /var/log/nginx/vhost-error_log warn;

location / {
root /home/user/public_html/billing;
index index.html index.php;
}

location = /announcements {
rewrite ^ /announcements.php last;
}

location /announcements/ {
rewrite ^/announcements/([0-9]+)/[A-Za-z0-9_-]+.html$ /announcements.php?id=$1 last;
}

location = /downloads {
rewrite ^ /downloads.php last;
}

location /downloads/ {
rewrite ^/downloads/([0-9]+)/([^/]*)$ /downloads.php?action=displaycat&catid=$1 last;
}
location = /knowledgebase {
rewrite ^ /knowledgebase.php last;
}
location /knowledgebase/ {
rewrite ^/knowledgebase/([0-9]+)/[A-Za-z0-9_-]+.html$ /knowledgebase.php?action=displayarticle&id=$1 last;
rewrite ^/knowledgebase/([0-9]+)/([^/]*)$ /knowledgebase.php?action=displaycat&catid=$1 last;
}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#location ~ .php$ {
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# include /usr/local/nginx/conf/fastcgi_params;
# fastcgi_param SCRIPT_FILENAME /xxx/xxx/xxx/public_html/$fastcgi_script_name;
#}
location ~ .php$ {
proxy_pass http://domain:8081;
include proxy.inc;
}


}



Содержимое proxy.inc
proxy_connect_timeout 59s;
proxy_send_timeout 600;
proxy_read_timeout 600;
proxy_buffer_size 64k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_pass_header Set-Cookie;
proxy_redirect off;
proxy_hide_header Vary;
proxy_set_header Accept-Encoding '';
proxy_ignore_headers Cache-Control Expires;
proxy_set_header Referer $http_referer;
proxy_set_header Host $host;
proxy_set_header Cookie $http_cookie;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass_request_body on;
proxy_pass_request_headers on;

Хидеры запроса:
(Request-Line) POST /cart.php?a=checkout HTTP/1.1
Host www.domain.ru
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding gzip, deflate
Accept-Charset windows-1251,utf-8;q=0.7,*;q=0.7
Keep-Alive 115
Connection keep-alive
Referer http://www.domain.ru/cart.php?a=checkout
Cookie SESSca600fd34e3e6b29a416f94be6b77e6a=bc0913a5aa3d835a9d48b36c3578dd6d; SESS30177d84584fca240fab4af9b25a35fd=8ea9e1c394a61e89919acad3e4b44227; SESScbdf0a2acbf747235ff7722186082ba4=67cb1090d5ef6f87ceea1d21f5868468; PHPSESSID=29676bbdfe2948eb189fe43a1b054058
Content-Type application/x-www-form-urlencoded
Content-Length 104

Ответ:
(Status-Line) HTTP/1.1 200 OK
Server nginx admin
Date Sun, 01 May 2011 08:56:51 GMT
Content-Type text/html; charset=utf-8
Connection keep-alive
X-Powered-By PHP/5.2.17
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache
Content-Length 0
Subject Author Posted

POST пуст (whmcs)

nonethree May 01, 2011 05:53AM

Re: POST пуст (whmcs)

nonethree May 03, 2011 01:35AM

Re: POST пуст (whmcs)

Igor Sysoev May 03, 2011 03:00AM

Re: POST пуст (whmcs)

Igor Sysoev May 03, 2011 03:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready