nginx (pronounced "engine-x") is a lightweight, high-performance Web server and reverse proxy as well as IMAP/POP3 proxy server.

learn more… | top users | synonyms

10
votes
0answers
355 views

nginx upload progress combined with normal request

I have a good virtual host for nginx that works well without using the nginx upload module. When I add upload progress into this my upload request. How can I solve this? i need to upload my files ...
4
votes
0answers
899 views

Enabling Chunked Transfer encoding in Nginx v.1.3.9+

Apparently Nginx now supports Chunked, but I receive error "411 Length Required" when a tablet device sends a Chunked request to Nginx. Any advice as to how to configure Nginx to support Chunked? I'm ...
4
votes
0answers
543 views

Varnish “FetchError no backend connection” error

Varnishlog: 0 CLI - Rd ping 0 CLI - Wr 200 19 PONG 1340829925 1.0 12 SessionOpen c 79.124.74.11 3063 :80 12 SessionClose c EOF 12 StatSess c 79.124.74.11 3063 ...
4
votes
0answers
586 views

nginx redirects back to remote_addr IP

I am trying to setup nginx 1.0.12 as a proxy for apache 2.2.15, but faced a strange problem. And I cannot solve it for third day in a row. I have test site c-craft.info and have installed roundcube in ...
3
votes
0answers
224 views

php-fpm crashing because of to many mysql processes

I have 2 frontend nginx servers going to 4 backend php-fpm servers which all run Wordpress. The php-fpm servers all connect to one MySQL server and I was checking some stats earlier each php-fpm ...
3
votes
0answers
680 views

Nginx dynamic upstream configuration / routing

I was experimenting with dynamic upstream configuration for nginx and cant find any good solution to implement upstream configuration from third-party source like redis or mysql. The idea behind it ...
2
votes
0answers
58 views

Out-of-order chef recipes causing apt package install to fail

I'm writing a Chef recipe to install among other things nginx and Phusion Passenger. The short summary is that the recipes on my run list are not executing in the order I expect, and that's causing an ...
2
votes
0answers
63 views

Nginx not honoring must-revalidate

I want to use nginx as a caching reverse proxy. I also have a special requirement, which I thought could be accomplished with nginx. I am using Amazon s3 as origin server and I use signed urls to ...
2
votes
0answers
35 views

Strange faulty 16000d response timing in gdevtools for specific XHR

We have some XHR on our website, that is reported in Google developer tools' network timeline as Receiving for 16035.5 days. There actually is a response, and for sure it does not take as long as ...
2
votes
0answers
36 views

Weird nginx configuration: multiple rewrite rules doesnt work

I have an application which knows how to prepare some special images and its running on a separate machine (i'm trying to use it as image server). When these images are prepared and served by ...
2
votes
0answers
47 views

Sharing authentication data between servers in nginx

I got an http server that uses the ports 9200 and 9292 (for logstash). Since the server doesn't support authentication, I'd like to set an nginx reverse proxy to handle the authentication. This is ...
2
votes
0answers
79 views

How to organize millions of static files to serve efficiently over the web?

I'd like to create a service to serve several hundred thousand smaller files (from 5kb to 500kb, mostly around 10-100kb). Think of it as a kind of gravatar.com which serves those little avatar pics on ...
2
votes
0answers
568 views

Trying to get the “pool seems busy” errors to stop with php-fpm

I have a machine that is running with 3 cores and 7GB of RAM. On this machine we are running Nginx 1.4.2 and PHP-FPM. Each PHP-FPM process uses ~30MB of RAM. So this is the pool configuration I have ...
2
votes
0answers
107 views

Nginx gives 404 error for rails app except the root

I have an Ubuntu 12.04 LTS VPS server that serves a static website with Nginx. I would like to set up a rails application that is accesible from the subfolder 'foo'. I use Passenger for serving the ...
2
votes
0answers
48 views

cacti send alert once nginx cannot be accessed

I already enabled graph on Nginx client stat and Nginx Socket stat, threshold plugin also installed, and they are working fine. I would like to know how can I get alert once users can't access nginx? ...
2
votes
0answers
380 views

Why does Nginx's proxy_intercept_errors directive require a rewrite to work properly?

Following is a sample Nginx server configuration. Without the "magical talisman" location block, proxied error content results in an Nginx 404 page rather than the customized error page being served. ...
2
votes
0answers
90 views

Using nginx: require authentication when request from public IP, not needed when local

I wrote a simple file browser app which is served using node on port 3000. I use nginx as a front-end which proxies this service. This is on my home server. I would like to be able to require basic ...
2
votes
0answers
39 views

$document_root not parsed in error_log location by nginx

Is there a way to use the $document_root variable in the error_log location for nginx? There's specific mention of it being supported on the access_log location in the wiki but nothing about ...
2
votes
0answers
60 views

allow uploads only to authenticated users (nginx + upload_module)

I have configure Nginx with the upload_module. I can upload & resume files but anybody can post to the /upload location. is there a way of making the location /upload internal and use ...
2
votes
0answers
269 views

large javascript file not being served properly by nginx

I'm having trouble serving a large (376kb) javascript file via nginx over ssl with gzip enabled. The file is served without issue over plain old http. The file in question is ckeditor.js and is ...
2
votes
0answers
342 views

nginx - Hide .php extension, and permanently redirect *.php requests to the clean url

After a lot of googling, I've managed to get pretty URLs working by using: server { listen 80; server_name www.url.com; rewrite ^/(.*) http://url.com/$1 permanent; } server { ...
2
votes
0answers
95 views

nginx reverse proxy not returning website

The setup Currently, we have an Apache2 webserver acting as load balancer for our web architecture. The backends are Xen virtual machines accessible via IPv6 for the public Internet and via IPv4 for ...
2
votes
0answers
211 views

Nginx multiple server blocks

Im having an issue trying to configure Nginx to work with gitlab and some other sites I have. I have foo.com that points to my server. bar.foo.com also points to my server. I'm trying to have ...
2
votes
0answers
261 views

Understanding Nginx try_files and fastcgi_path

I'm trying to convert a very simple .htaccess file to nginx: Options -Indexes -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] As I read on Google and ...
2
votes
0answers
149 views

Nginx / PHP-FPM setting 404 / 5xx on externals

So I've recently been trying to help out the community by building a pimcore based nginx vhost config. Everything works very well from what I can see except for 1 small issue. If any of the pages ...
2
votes
0answers
205 views

Application reports timeouts. However nginx has no record or log

We are serving Django via nginx/uwsgi. We use AWS ELB behind a VPC. This is a webservice to Mobile clients. We had reports of timeouts during development so we have added a concept of a request_id ...
2
votes
0answers
225 views

nginx 2 symfony2 web application, one ip no domain

I have irritating with nginx. I set up in /usr/share/nginx/www/firstapp one application and in /usr/share/nginx/www/secondapp. in my default conf i setup that in / root localization i want first ...
2
votes
0answers
287 views

nginx lua: os.execute waitpid() failed (10: No child processes)

So, I'm trying to execute a script on every request. I know how that sounds, this is for development environment. I've added this to my nginx config access_by_lua_file "/opt/nginx/git-magic.lua"; ...
2
votes
0answers
195 views

Nginx HttpSecureLinkModule and IP restricted hashes not working sometimes

Im using the nginx module HttpSecureLinkModule to protect resources from being hotlinked with expiring hashes which use user's IP address to make a hash that will only work for them, on top of ...
2
votes
0answers
280 views

Nginx as a proxy doesn't allow to access backend (Apache) content which is password protected

I have apache as a backend and nginx as a frontend. Some content is password-protected by Apache (HTTP Auth). When I access it directly - everything works fine, bur when I try it through nginx - ...
2
votes
0answers
471 views

Long Polling Options: Nginx, PHP, Node.js

Also posted here: http://stackoverflow.com/questions/8839295/long-polling-options-nginx-php-node-js I'm designing a long-polling app to broadcast small changes very rapidly to, possibly, a large ...
2
votes
0answers
875 views

nginx sticky sessions / ip_hash with Socket.io

I am to be load balancing two node.js/Socket.io instances on different boxes with nginx running a simple notifications service with a retroactive event for new clients. I don't think there will be ...
2
votes
0answers
500 views

Nginx doesn't seem to stop correctly

I'm using the following script to start/stop nginx: #! /bin/sh ### BEGIN INIT INFO # Provides: nginx # Required-Start: $all # Required-Stop: $all # Default-Start: 2 3 4 5 # ...
2
votes
0answers
738 views

Nginx subdomain redirects to domain, what's wrong?

I've got a server with serveral domains under Nginx running fine (WordPress blogs). Now I want to setup a phplist server and locate it under one subdomain, but although I thought I configured the ...
2
votes
0answers
831 views

Config NGINX to GZip Font Files? ( Different gzip_types for different directories)

SOLUTION: It turns out it is not my config / NGINX faults - my DNS provider, cloudflare, is preventing the fonts from being GZipped for some reason I'm using NGINX with GZIP_Static module installed. ...
2
votes
0answers
393 views

Using nginx as reverse proxy with haproxy as loadbalancer

I am tring to use nginx and haproxy together. I am doing that because haproxy does not support gzip compression. My aim is that first using nginx for gzip compression than forward it to haproxy for ...
2
votes
0answers
1k views

phpBB configuration problem under Nginx

I have a phpBB site running with Nginx (PHP via FastCGI). It works OK. However, some specific actions like moving or deleting a topic fail. Instead, I'm redirected to the forum index. I think it is a ...
1
vote
0answers
25 views

Reject requests with special unicode chars in Nginx

I'd like to block/deny all requests that have one or more non-ascii chars in it. For instance, I'm getting requests like these: /\ufffd?s=p&z=\ufffd&g=\ufffd&o=2 Where \ufffd is the ...
1
vote
0answers
16 views

nginx redirects requests from apache proxy to real server address

Description: [server 1] <-|-> [server 2] [Apache] <-|-> [nginx <--> gunicorn <--> django] Apache is running on a server 1 which silently redirects just one subdomain to ...
1
vote
0answers
18 views

“gitlab-shell self-check failed” after installing GitLab

So I installed GitLab and nginx and now i get a 502 Bad Gateway error when accessing it. I went through with the check sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production and found out I ...
1
vote
0answers
37 views

HTTPS works, HTTP does not

I use NGINX 1.5.12 on Ubuntu 13.10 and HTTPS works fine and the pages are served (both HHVM and PHP5-FPM) trying to load the website in HTTP fails and WGET returns this: HTTP request sent, awaiting ...
1
vote
0answers
15 views

Can't deploy Ruby 2, Rails 4 app to Linode

I have a Rails 4 app and I want to deploy it to my Linode and I'm struggling a lot to get this working. I followed all the basic instructions from the Linode guides, also, installed all the ...
1
vote
0answers
9 views

Nginx-watch script - issue with inotifywait not seeing changes

I'm using Nick's excellent nginx-watch script to monitor an nginx.conf file in www root so that it reloads a couple of wordpress plugin nginx configurations automatically as soon as they change (BWPS ...
1
vote
0answers
19 views

LXC and proxying port 22 (ssh)

I have installed LXC on my Ubuntu 12.04 server and have created a couple of containers. I have only 1 external IP address, thus I am using nginx on my host machine to proxy HTTP requests from certain ...
1
vote
0answers
63 views

LA problems while serving 40M requests daily with php-fpm, nginx

I have server with FreeBSD (16 cores with HT, SSD, 32Gb RAM) which is getting about 40M http requests daily. All requests are served by nginx + php-fpm. At these graphs you see that we have a ...
1
vote
0answers
36 views

DNS/Server change causing blank page

We have recently changed servers and hosts of our test|production environment. Right now we are still testing but our http://test.example.com, is sometimes showing just a blank page to certain users. ...
1
vote
0answers
26 views

Understanding the nginx proxy_cache_path directive

proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=myCache:8m max_size=100m inactive=1h; What does the keys_zone=myCache:8m mean? There's not much said to it in the docs: In addition, all ...
1
vote
0answers
14 views

nginx can't find cgi two levels deep

Typically, I want to serve an index.html file when http://mysite.com/ and any other directory is requested. The following, in nginx.conf, does that for /test: location /test { try_files $uri.html ...
1
vote
0answers
37 views

APACHE/NGINX fine tuning for Apache Benchmark testing

I need to know some tuning configuration about APACHE/NGINX. I use Ubuntu Server 12.04.4 LTS on VirtuaBox with two VM: one with APACHE 2.2.22, the other with NGINX 1.1.19. In addition I installed PHP ...
1
vote
0answers
35 views

Does Nginx has something similar to Apache mod_status?

I would like to know whether there is something like apache mod_status for nginx web server as well, basically i want to know all the requests that are currently processing by nginx process.. is this ...