не держит сессию
horsement
nginx-forum at nginx.us
Wed Apr 23 09:13:55 UTC 2014
форум xenforo
nginx+apache
на апаче нормально все авторизует и держит сессию залогиненой , на nginxe
постоянно разлогинивает
вот конфиг
#user nobody;
worker_processes 2;
events {
worker_connections 101;
}
http {
include mime.types;
default_type application/octet-stream;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
client_header_buffer_size 1k;
large_client_header_buffers 4 4k;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
#send_lowat 12000;
keepalive_timeout 900;
server_tokens off;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 8k;
gzip_types text/plain text/xml application/xml application/x-javascript
text/javascript text/css text/json;
gzip_http_version 1.0;
gzip_comp_level 4;
#lingering_time 30;
#lingering_timeout 10;
#reset_timedout_connection on;
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://localhost:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
client_max_body_size 10m;
client_body_buffer_size 128k;
client_body_temp_path client_body_temp;
proxy_connect_timeout 120;
proxy_send_timeout 120;
proxy_read_timeout 180;
#proxy_send_lowat 12000;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_temp_path proxy_temp;
charset utf-8;
}
location ~*
\.(?:jpg|jpeg|gif|png|ico|gz|svg|svgz|mp4|ogg|ogv|webm|htc|ttf|ttc|otf|eot|woff|w3g|font.css)$
{
expires 30d;
access_log off;
add_header Cache-Control public;
root C:\APPServ\htdocs;
}
}
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,249465,249465#msg-249465
Подробная информация о списке рассылки nginx-ru