location ~ .php$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass backend;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
include fastcgi_params;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
user wwwrun www;
worker_processes 2;
error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
use epoll;
worker_connections 2048;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 15; #default: 65
gzip on;
# gzip_static on;
#To prevent processing requests with undefined server names
server {
listen 80;
server_name "";
return 444;
}
server {
listen xxxxxxxxxx:80;
server_name xxxxxxx.kz www.xxxxxxxxx.kz;
# root /home/yyyyyyy/srv/www;
access_log /home/yyyyyyy/srv/log/nging.access.log main;
#proxy_temp_path /usr/local/nginx/cache/xxxxxxxxx.kz;
location / {
proxy_pass 127.0.0.1:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarder-For $remote_addr;
proxy_set_header Host $host;
# proxy_cache cache;
# proxy_cache_valid 10m;
# proxy_cache_valid 404 1m;
proxy_connect_timeout 120;
proxy_send_timeout 120;
proxy_read_timeout 180;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 10m;
}
error_page 404 404.html;
}
да все, я сделал по другому. решение выше. спасибо