i configured gzip like bellow: http { gzip on; gzip_comp_level 5; gzip_http_version 1.0; gzip_proxied any; gzip_min_length 1k; gzip_types text/css text/plain text/javascript text/xml application/json application/javascript application/x-javascript; ... upstream proxy_static_srv { ... } server { ... locby foxgab - Nginx Mailing List - English
you mean backend server keeps session entries even they expired? i think that's the server's fault, rather than nginx.by foxgab - How to...
my app set a cookie which named like SESSIONID-MYAPP, i want to write the value of that cookie to log file, but i tried $cookie_SESSIONID_MYAPP, $cookie_SESSIONID-MYAPP, but i can't get what i want.by foxgab - Nginx Mailing List - English
if nginx connect to a proxied server successfully, but the server takes a long time before starting to send the response, will proxy_read_timeout directive effect? if not, is there any other directive do that timeout kind work? when proxy_next_upstream is set to "off", which status code will be respond if timeout?by foxgab - Nginx Mailing List - English
i want to change the redirect location URI protocol to https if that is using, so i tried to configure like this: proxy_redirect ~*^http://$host(/.*)?$ $scheme://$host$1; but that didn't work, so i change it to: proxy_redirect http://$http_host $scheme://$http_host; then, it works. I suspect that the variable in regular expressions is treat as a string, hence my former diby foxgab - Nginx Mailing List - English
according to the documentation of http_stub_status_module, there are 3 kinds of connections show in the status page, but I'm confused that which kind the connections, which are waiting or reading responses from upstream servers, should be classified into ?by foxgab - Nginx Mailing List - English
is upstream keepalive connetions adaptable with websocket?by foxgab - Nginx Mailing List - English
hi, how nginx determines idle connections? is keepalive adaptable with websocket? will "proxy_ignore_client_abort off" setting exclude keepalive function?by foxgab - Nginx Mailing List - English
i configred nginx with gzip directives: http { gzip on; gzip_types text/css application/javascript; gzip_comp_level 9; gzip_http_version 1.0; gzip_proxied any; } some upstream servers have already gzipped the response, i see the lengh of the respense is similar to that send from nginx to client, i'm very curious to know if nginx just bypassed that rby foxgab - Nginx Mailing List - English
hello, my app will keep a long connection with server, while server may push message to client, two levels nginx proxy for the upstream servers, does keepalive directive support this model? the documentation of the keepalive directive said: "For HTTP, the proxy_http_version directive should be set to '1.1' and the 'Connection' header field should be cleared." why clear that heby foxgab - Nginx Mailing List - English
foxgab Wrote: ------------------------------------------------------- > hello, > > i found http_realip_module doesn't work if the realip_header contains > client port. > my config is like bellow: > http { > real_ip_header X-Real-IP; > set_real_ip_from 0.0.0.0/0; > server {...} > } > > the X-Real-IP header in the request is: &gby foxgab - Nginx Mailing List - English
hello, i found http_realip_module doesn't work if the realip_header contains client port. my config is like bellow: http { real_ip_header X-Real-IP; set_real_ip_from 0.0.0.0/0; server {...} } the X-Real-IP header in the request is: X-Real-IP: 123.123.123.123 but the $remote_addr variable in the log turn out to be the address of last hop proxy. is anything wrongby foxgab - Nginx Mailing List - English
what's gone happen if i set multiple proxy_cache_valid directives in different levels?by foxgab - Nginx Mailing List - English
it said ""aio on" is unsupported on this platform in /usr/local/nginx/conf/nginx.conf:25" when i apply my conf. see version info bellow: # /usr/local/nginx/sbin/nginx -v nginx version: nginx/1.10.3 # lsb_release -a LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch Distributor ID: CentOS Description: CentOS release 6.8 (Final) Releasby foxgab - Nginx Mailing List - English
to explain the proxy_buffer_size directive, the document says: "Sets the size of the buffer used for reading the first part of the response received from the proxied server" what does "first part" mean? that is the first packet or what? what's the relationship and difference between between proxy_buffer_size and proxy_buffers? and how these two directives effect the lby foxgab - Nginx Mailing List - English
that means, if the value of $http_upgrade is null or that variable doesn't exist, the value of $connection_upgrade will set to "close", or it will set to "upgrade" in the other cases. the $http_upgrade is the value of the "Upgrade" header in the client request.by foxgab - Nginx Mailing List - English
why no just pass the $http_upgrade and $http_connection headers to the backend? like conf bellow: proxy_set_header Upgrade $http_upgrade proxy_set_header Connection $http_Connection and if i set the Connection header to "upgrade" permanently, does it make any harm?by foxgab - Nginx Mailing List - English
i found if i didn't configure any proxy_set_header directives in a context, it will inherit those directives from father context automatic, but if i set one in current context, the inheritance won't work. my configration is like bellow: http { proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $host; server {by foxgab - Nginx Mailing List - English
hi Maxim, Thinks for you reply. i got a problem on http_realip_module, as what you said, duplicate addresses occurred in that header. if i want to get the real ip for access limiting, and append the last hop proxy address in X-Forwarded-Fro header at the same time, what should i do?by foxgab - Nginx Mailing List - English
if nginx is behind another proxy, that proxy set the X-Forwarded-for header with the real client ip, and the configration of nginx is : location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; real_ip_header X-Forwarded-For; set_real_ip_from 192.168.0.0/16; } whether the real client ip or the address of the proxy will add in the X-Forwarded-For header? will the valuby foxgab - Nginx Mailing List - English