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

5
votes
0answers
2k views

starting nginx on mac fails with 48: address already in use

I'm trying to start nginx on my Mac OS X using the command sudo nginx It fails with the following error nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use) nginx: [emerg] ...
3
votes
0answers
85 views

OCSP stapling with nginx

I'm having trouble with OCSP stapling in nginx. So I start up the openssl ocsp daemon, and then I visit my site. Then it says Invalid request. I am using a private PKI and CA. SSL key: 8192bit DH key ...
3
votes
0answers
413 views

Nginx as a load balancer. Frequent upstream timed out (110: Connection timed out) while connecting to upstream

I'm trying to use nginx on a centos 7 virtual machine as a load balancer to replace an aging Coyote Point hardware device. However in one of our webapps we're seeing frequent and continual upstream ...
3
votes
0answers
223 views

HAProxy URL rewrite on 404 error

How to make HAProxy rewrite to a different back-end when the first is missing the file? What I need is errorloc but making a rewrite instead of redirect, so the client is not aware of redirect. We ...
3
votes
0answers
370 views

How to enable certain SSL cipher while having disabled the group?

I would like to enable the SSL cipher EDH-DSS-DES-CBC3-SHA (also known as TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA) in my nginx SSL environment to support IE8 on Windows XP. The base SSL ciphers for nginx ...
3
votes
0answers
235 views

How does PHP5-FPM send errors to nginx?

I've been experimenting a bit with error logging in php-fpm and nginx since I couldn't find any good explanation on the web. Most guides said I should change catch_workers_output to yes if I want to ...
3
votes
0answers
2k views

Munin dynamic graph zoom (dynazoom) not working (Nginx, PHP-FPM)

Debian 7.5 Nginx/1.6.0 PHP 5.6.0RC2 (fpm-fcgi) (built: Jul 11 2014 08:17:52) Munin v2.0.21-2 I been searching all over the net for a few days for answers to my problem but it seems like no one knows ...
3
votes
0answers
199 views

Rails 4 Unicorn+Nginx on Ubuntu 13.04 VPS keeps crashing

I bought a years subscription at bluevm.com (found some coupon code, it was only about $15 for a whole year) to launch my first Rails Production server. I'm running Nginx with Unicorn and MySQL on ...
3
votes
0answers
152 views

SPDY & Nginx upload issues

I have this setting: an Nginx server with php-fpm and the http://blueimp.github.io/jQuery-File-Upload/ When I try to upload a file after about 10MB it fails. This happens when SPDY is activated. ...
3
votes
0answers
608 views

Nginx returning 408 error with XHR2 file uploads during mid-upload

A customer of mine is trying to upload a file to our remote nginx webserver via a form POST using XHR2 form data (and a cross-domain request with CORS). During mid-upload, the webserver returns a 408 ...
3
votes
0answers
243 views

Nginx client_max_body_size per location block (with php frontcontroller pattern)

I am looking for a solution for this problem. I understand the reasoning why the setup in that question does not work, but I try to get to a solution where I can get it working. The idea is to allow ...
3
votes
0answers
1k 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. ...
3
votes
0answers
130 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 ...
3
votes
0answers
369 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
500 views

NGINX mod _proxy_html available?

Somebody created already a similar http://apache.webthing.com/mod_proxy_html/ mod_proxy_html module for Nginx? I think the closest module would be http://wiki.nginx.org/HttpSubsModule but I have no ...
2
votes
0answers
32 views

Nginx: SNI doesn't work for server_name with multiple arguments

With this Nginx config: server { listen 443 ssl; server_name www.x.nl x.nl; ssl_certificate /etc/nginx/ssl/x.nl.crtkeyca; ssl_certificate_key /etc/nginx/ssl/x.nl.crtkeyca; ...
2
votes
0answers
68 views

How to find size of atomic write for nginx access log buffer?

This link says: The buffer size must not exceed the size of an atomic write to a disk file. For FreeBSD this size is unlimited. How can I find size of atomic write on my server? Is there any ...
2
votes
0answers
59 views

Nginx setup on aws - redirecting to port 81, cannot reverse

I've tried to setup nginx on my free AWS instance so that it can host multiple domains on single ip address (not sure if it can be managed, but I'm trying to dig in). In that process I created ...
2
votes
0answers
47 views

Nginx -s quit does nothing after 1.8 upgrade, how can I debug and/or find the issue?

The premise of this question is unfortunately vague but I can't pinpoint a more specific issue. I upgraded a machine from nginx 1.6.3 to 1.8 and now issuing a nginx -s quit does literally nothing. The ...
2
votes
0answers
31 views

nginx error log :r eturned busy again while sending response to client,

I got lots of errors in my nginx errorlog as following: 2015/04/28 20:05:32 [alert] 67449#0: *29938935 sendfile(/var/www/images/201504/13/210123jpt6cpjj6r1g2upt.jpg) returned busy again while sending ...
2
votes
0answers
66 views

nginx, separate robot access log and human access log

I'm trying to separate the robot access log and human access log, so I'm using below configuration: http { .... map $http_user_agent $ifbot { default 0; "~*rogerbot" 3; ...
2
votes
0answers
44 views

Nginx cache unmanaged growth

We have two Nginx servers with independent local caches for caching images. Periodically there is problem with unmanaged growth of cache's size. This size may be far larger than max_size in ...
2
votes
0answers
71 views

nginx - connect() failed upstream under load testing

I've been doing some load testing with wrk of my nginx reverse proxy -> my web app setup and I noticed that when I get to 1000+ concurrent connections, nginx starts returning 502s and the following ...
2
votes
0answers
731 views

nginx recv() failed (104: Connection reset by peer) while reading response header from upstream

I have recently upgrade my magento from 1.5 to 1.9 and when ever I add a certain product to basket, I started to receive this error: 502 Bad Gateway There were no log entries in the var/log/ folder: ...
2
votes
0answers
49 views

Nginx: Tags in Syslog output on wrong position

I'm trying to output the logs of several Nginx servers in FreeBSD jails to the jails' host. I'm using FreeBSD 10 syslog and Nginx 1.7.10. In Nginx (in this case the hostname is web) I have set: ...
2
votes
0answers
75 views

start nginx despite missing upstream

I like to run nginx as a local proxy server, serving stale cache files if the upstream server is unavailable. This works well, except the local machine is restarted, while the internet connection ...
2
votes
0answers
135 views

Very slow upload speed with nginx proxying apache

I have a nginx server proxying apache on my server, and the setup has been running fine... Until yesterday, when I found out that, actually, uploading a file using a PHP script is very slow. Since ...
2
votes
0answers
71 views

How to let Corosync / pcs control nginx?

Folks, I'm trying to replace a single aging load balancer with multiple virtual machines running nginx. However after I got centos 7 and nginx installed I realized that heartbeat has been ...
2
votes
0answers
190 views

reverse proxy issues with nginx over apache2.4 hosting joomla: url rewrite does not work any more

I am setting up a joomla 3.x site with apache 2.4 on an ubuntu 14.04 server on aws ec2. That alone is fine with url rewrite working fine. I have cleared all apache issues before freeing the port 80 ...
2
votes
0answers
180 views

Roundcube, upload fail

I have Roundcube installed on Ubuntu 14.04, using NGINX, with static IP, SpamAssassin, ClamAV . Sending/receiving email was fine including downloads, however cannot upload anything to send. ...
2
votes
0answers
1k views

“echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message

One of my server (Ubuntu 12.04, 16CPU, 32GB RAM) runs the app section of my website (Nginx 1.1.19, PHP5-FPM, Php 5.3.10, Symfony2 Web Framework) Suddenly, users started getting HTTP 5** Errors. When ...
2
votes
0answers
143 views

Intermittent Connection Issues on High Traffic Servers

Some brief background: We've been getting reports of very intermittent connection issues from our users. Several times per day, users will have to reload the page they're on due to a connection ...
2
votes
0answers
51 views

Incremental Subdomain Brute forcing?

Currently looking after a small varnish/nginx webserver group sitting behind an AWS ELB. Monitoring of the primary domain recently picked up a huge number of hits to non-existent sub-domain ...
2
votes
0answers
560 views

Unable to apt-get install nginx-extras package on top of nginx 1.7.9

I am attempting to install Phusion Passenger for nginx on a dev Ubuntu box following this guide from the passenger website. I have Nginx installed and running already, version is 1.7.9-1~trusty. I ...
2
votes
0answers
205 views

400 bad request from a proxy cache

So we have an nginx proxy cache that is used to maintain uptime even if npm goes down. On occasion this server (noticeably once every few months) starts returning 400 bad request for every response ...
2
votes
0answers
106 views

nginx with php and two node.js routes

I have two routes i want to pass two node processes(websocket route, angular app), while a 3rd route needs to pass to a php application that acts as a rest api to the angular app. i'm not terribly ...
2
votes
0answers
603 views

Multiple Domains Name on one server with Nginx

I'm struggling to configure two different domains name on my dedicated server... I've already one DN configured like this in the vhost DOMAIN_1.net.conf : server { listen 127.0.0.1:8080; ...
2
votes
0answers
47 views

Do we get a access.log entry for content served from cache in nginx

For a configuration that looks like http { proxy_cache_path /etc/nginx/cache keys_zone=one:10m; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; server { ...
2
votes
0answers
109 views

File upload through Nginx with proxy_pass to Gunicorn is slow (Ubuntu 14)

I previously was running Ubuntu 12 where I had Nginx receive large file uploads, and then proxy_pass it to gunicorn / django (port 8000). This worked fine once I figured out I needed to set ...
2
votes
0answers
296 views

nginx subdirectory to subdomain icingaweb2

I currently have icinga2 set up with the new icingaweb2 ui. it defaults to the subfolder /icingaweb as follows: location ~ ^/icingaweb/index\.php(.*)$ { # fastcgi_pass 127.0.0.1:9000; ...
2
votes
0answers
59 views

how to prevent loadbalancer from going offline?

i plan to setup a load balancer for a webproject but there is a major issue in my head: a typical loadbalancer would be: (provided by nginx upstream) Server #1 accepts all requests and forwards them ...
2
votes
0answers
173 views

Access website hosted on same server as VPN via the VPN

I have just finished setting up a OpenVPN server running on Ubuntu 12.04 and I have been able to connect to it from my own computer (the client). I am able to set up the VPN server to route ALL ...
2
votes
0answers
230 views

nginx proxy with CAS

I have a JS application that issues REST calls from the client browser to a data source that sits behind nginx. We need to implement CAS authentication for the application to manage access. However ...
2
votes
0answers
146 views

Requests are never queued after pm.max_children with Nginx and PHP-FPM

As soon as a pool reached pm.max_children, Nginx starts timing out when trying to send new requests to PHP-FPM. "max listen queue" is always 0 in the php-status page. PHP-FPM 5.5.16 Nginx 1.6.1 ...
2
votes
0answers
85 views

How to host TWiki with nginx?

I'm trying to host a TWiki (http://twiki.org) in a nginx dedicated server, but I'm unable to setup rewrite rules to effectively host the wiki environment. Looking at this oficial documentation: ...
2
votes
0answers
282 views

Nginx & fcgiwrap, logging perl errors to error log

This is similar to this question, which got no responses: How to debug CGI over fcgiwrap/nginx How do I get perl errors to be automatically placed in the nginx error log? Right now, when there is any ...
2
votes
0answers
2k views

PHP Files being downloaded instead of displayed in browser

I created a VPS using Nginx and I tried to display the php info with: <?php phpinfo(); ?>. Instead, the browser asks me to download the php file, and it's not parsed either. This happens only ...
2
votes
0answers
202 views

Database hangs when using owncloud on nginx php5-fpm postgresql - i think postgres if responsible

I have strange problem with this setup. Strangely it occurs only when using owncloud from one specific computer. Problem is when user click on "Activities" an "document" icons one after another ...
2
votes
0answers
251 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 ...
2
votes
0answers
2k views

upstream timed out (110: Connection timed out) while reading response header from upstream

For some reason, I am getting this error whenever I am running a query on my server. On my local setup, this query takes around 7-8 seconds to return, but it keeps timing out on my actual server. ...