|
|
|
|
АРХИВ :: nginx-ru
|
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
Доброго времени суток! Имеется nginx 1.3.10 следующего содержания:
user nobody nobody;
worker_processes 16;
worker_rlimit_nofile 20480;
worker_priority -5;
timer_resolution 100ms;
error_log /var/log/nginx/error.log info;
events {
worker_connections 2048;
use epoll;
}
http {
access_log off;
server_name_in_redirect off;
server_names_hash_max_size 10240;
server_names_hash_bucket_size 1024;
include mime.types;
default_type application/octet-stream;
server_tokens off;
sendfile on;
sendfile_max_chunk 128k;
tcp_nopush on;
tcp_nodelay on;
keepalive_requests 100;
keepalive_timeout 50s 35;
keepalive_disable msie6;
ignore_invalid_headers on;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
reset_timedout_connection on;
connection_pool_size 256;
client_header_buffer_size 256k;
large_client_header_buffers 4 256k;
client_max_body_size 200M;
client_body_buffer_size 128k;
request_pool_size 32k;
output_buffers 4 32k;
postpone_output 1460;
client_body_in_file_only on;
log_format bytes_log "$msec $bytes_sent .";
underscores_in_headers on;
lingering_time 30;
lingering_timeout 10;
proxy_temp_path /tmp/nginx/nginx_proxy/;
proxy_cache_path /tmp/nginx/proxy_temp levels=2 keys_zone=pagecache:5m
inactive=10m max_size=50m;
proxy_cache pagecache;
proxy_headers_hash_bucket_size 6400;
proxy_headers_hash_max_size 51200;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 320;
proxy_buffer_size 64k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_redirect off;
proxy_hide_header Vary;
proxy_set_header Accept-Encoding '';
proxy_ignore_headers Cache-Control Expires;
proxy_ignore_client_abort off;
proxy_intercept_errors off;
proxy_set_header Referer $http_referer;
proxy_set_header Host $host;
proxy_set_header Range "";
proxy_set_header Request-Range "";
proxy_set_header Cookie $http_cookie;
gzip on;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
gzip_proxied any;
gzip_http_version 1.1;
gzip_min_length 1000;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_types text/plain text/xml text/css application/x-javascript
application/xml application/xml+rss text/javascript application/atom+xml;
# Основной домен - java-приложение на бекенде
server {
listen ип:80 rcvbuf=8192 sndbuf=16384 backlog=32000;
server_name хост www.хост;
access_log /usr/local/apache/domlogs/хост-bytes_log bytes_log;
access_log /usr/local/apache/domlogs/хост.com combined;
location / {
proxy_pass http://127.0.0.1:8081;
proxy_redirect http://127.0.0.1:8081/ /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
}
server {
listen ип:80;
server_name wiki.хост www.wiki.хост;
access_log /usr/local/apache/domlogs/wiki.хост-bytes_log bytes_log;
access_log /usr/local/apache/domlogs/wiki.хост combined;
location ~*
^.+\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|html|htm|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso)$
{
root /home/wiki/www;
expires 1d;
error_log /var/log/nginx/vhost-error_log warn;
try_files $uri $uri/ @fallback;
}
location / {
proxy_pass http://ип:8090;
proxy_redirect http://ип:8090/ /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
location @fallback {
proxy_pass http://ип:8081;
add_header X-Cache "Jump to backend";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
location ~ /\.ht {
deny all;
}
}
include "/etc/nginx/vhosts/*";
}
На пыхающем бэкенде - апач с suphp.
Работало все это отлично пока не перенес на боевой хост. А там началось...
Не проходят данные из форм отправляемые POST-запросом - валится все в
500-ю ошибку вот с такими нерадостными вещами:
Handler for (null) returned invalid result code 70014
Handler for (null) returned invalid result code 70007
Что я не так напорол с конфигом?
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|
|
|