can't disable logging of static resources like images (1 reply)
does the order of access_log directives matter?I can't disable the logging of static resources.I have the main config file which contains the access_log directive atline...
View ArticleNginx keep crashes when it is used in uwsgi (5 replies)
In my setup, i have nginx proxy in different machine, nginx server and uwsgi service. Once Nginx server receives the request from the proxy, it invokes the uwsgi call to using uwsgi socket, uwsgi...
View ArticleHow to disable access_log to images but log 404s (2 replies)
hi,I am suppressing the access_log for images and other files in the /res/directory:location ^~ /res/ {error_page 404 /res/images/100candles-logo-square.png;expires 14d;access_log off;}but I would like...
View ArticleCentOS 6.6, SELinux breaks Nginx 1.6.0 (5 replies)
We have been successfully running Nginx installed from the official Nginx CentOS repositories for ages. Last night I upgraded two of my Nginx 1.6.0 servers from CentOS 6.5 to CentOS 6.6 and SELinux...
View Articleinvalidate a certain key in my cache (3 replies)
I have nginx setup as a caching proxy, which caches redirect responses from backend servers.I want a way to invalidate a certain redirect/key from my cache.i usually go into my caching dir and...
View ArticleHotlinking protection and try_files problem (no replies)
Hi, I'm having some trouble getting hotlinking protection working with nginx and xenforo forum software.Currently I have;server {listen 80;...location / {try_files $uri $uri/...
View ArticleProxied request header names in SPDY are always lowercase (2 replies)
Hello!I have a question about the behavior of proxing SPDY to HTTP with nginx.First, there is a configuration like the following.upstream app {server 127.0.0.1:80;keepalive 32;}server {listen 443 ssl...
View ArticleSPDY inflate errors in nginx 1.7.4 (5 replies)
i am seeing many error log messages relating to SPDY on an HTTPS only website here. this appears to also be triggering (or at least related to) database timing problems, which is causing dbase...
View Articlenginx configuration - sharetronix (no replies)
i try to setup sharetronix on my vps server, with nginx + php5-fpm. The problem is (maybe) my nginx configuration, when i try to view website, i get error 404 - No input file specified.My configuration...
View Articleconnection close on 500, 503, 502. (5 replies)
Hi There,I want to send a connection_close to the client whenever the HTTP status is any of the 50X codes. How could i accomplish this?Thanks for your response.
View ArticleRegex positional capture in map (5 replies)
map's documentation<http://nginx.org/en/docs/http/ngx_http_map_module.html#map> states:A regular expression can contain named and positional captures that canlater be used in other directives...
View Article'location' as an alias for 'server'? (1 reply)
I have nginx set up with several servers in /etc/nginx/sites-enabledHowever, I want to convert my setup to one domain ***myserver.com*** , so typing in a browser"lalala.com"will no longer get me to the...
View Articlemap_hash_bucket_size, map_hash_max_size, and memory usage (no replies)
I was hoping someone could clarify how exactly map_hash_bucket_size and map_hash_max_size should be set and the impact it has on memory.For map_hash_bucket_size, it says it should be a multiple of the...
View Articlerealip - protocol support (1 reply)
Hi all,I'm successfully using the realip module to validate proxies and set $remote_addr to the external IP for a request, but I'm trying to do the same for HTTP vs HTTPS where the proxy (Amazon ELB,...
View ArticleCan response code be 444 in error_page (3 replies)
Hello.I want to reject a connection when some errors (400, 403, ...) occur, so I used error code 444 in error_page like this:error_page 400 =444 @reject_conn;location @reject_conn {return 444;}When I...
View Articlecache manager worker_connections not enough (1 reply)
I am using proxy_cache as a cache server, about 20-30k requests /s. It sometimes gets slow,and I find lots of such messages:2014/11/05 17:01:32 [alert] 22169#0: 512 worker_connections are not...
View ArticleProblem with 'Host' http header when using ssl (4 replies)
I'm using Nginx as reverse proxy with SSL termination. The J2EE application that is behind it sometimes uses host information to create URLs for popup windows. Right now it inserts name of my upstream...
View ArticleRequire a password for everything except one folder? (no replies)
I'm trying to deny access to all locations on the server, unless the user has a specific IP address or enteres a password. This part is working. I'm also trying to add an exception, where any path...
View ArticleFile '/usr/sbin/nginx' seems to be deleted (1 reply)
I am seeing a lot of these entries in my logsNov 6 04:29:13 sv1 kernel: nginx[62598]: segfault at 0 ip 0000000000438f38 sp 0 0007fffa5a934c0 error 4 in nginx (deleted)[400000+e2000]Nov 6 04:29:13 sv1...
View ArticleAutoindex - Filter by filename? (1 reply)
Is there a way to have autoindex only display certain files?If I only want to display a file named "the_nginx_mailing_list_guys_are_genuises*" - can I do that?
View Article