Nginx ("engine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

learn more… | top users | synonyms

2
votes
0answers
178 views

How to proxy setup nginx with play and angularjs

I am learning play framework and angularjs with nginx. The play app is running on port 9090 and angularjs app is running on 9000. I am trying to proxy all requests to /app/* to the back-end Play ...
2
votes
0answers
131 views

Haproxy Nginx/Naxsi to Web servers not working

I have a haproxy/nginx/naxsi setup for load balancing and security. Traffic is supposed to come into haproxy then to nginx/nasxi then finally to the web servers if they passed the WAF. We also have a ...
2
votes
0answers
90 views

HTTP DELETE timeout between Nginx and Application

We're facing a really weird error using HTTP DELETE, the symptom is occasionally the user gets a 504 (timeout) error in the browser. The requests flow through the steps described below: Browser -> ...
2
votes
0answers
32 views

How to reload nginx config only on part of workers?

Is there any way to prevent nginx from reloading configuration on all workers at the same time? I have configured some really short timeouts, so doubling number of workers processes when load is high ...
2
votes
0answers
196 views

Nginx and buffering of big responses

In our application's configuration, nginx acts as a reverse proxy in front of gunicorn. Our application replies to frontend requests with generally speaking, small responses... but some endpoints ...
2
votes
0answers
79 views

Got 504 Timeout in 200ms. What does that mean?

I have a website. Using Nginx and Spring. Today, some of APIs got 504 gateway timeout, but these time-out return instantly. I suppose a time-out error should be returned after a period of time. So, ...
2
votes
0answers
891 views

Unknown NGINX open socket alerts

I am new to Nginx. When I checked the error log I see this alerts going on for very long. Should I be concerned? 2015/09/24 15:13:57 [alert] 2416#0: *0 open socket #273 left in connection 178 2015/09/...
2
votes
0answers
54 views

NGINX Reverse Proxy redirect settings

I have the following scenario: NGINX | | JavaEE TERMINATING | -> REVERSE PROXY -> | Application SSL (443) | HTTP | Server Reverse proxy is done by: ...
2
votes
0answers
443 views

php5 not working with nginx 1.9.3

I am new to nginx, and having some trouble with php5. (I had it sorta working, but cant seem to get it working again.) There are 2 files I am woring with, that seem to control nginx, and php5-fpm. /...
2
votes
0answers
111 views

Nginx and Cross Subdomain Cookies

TLDR: How to share cookies between subdomains for a backend application sever that I cannot "configure" using nginx as a proxy - some magical combination of proxy_*? A tornado web server is running ...
2
votes
0answers
58 views

nginx, php-fpm, and subfolders

First dive into nginx. Possible lack of googlefoo/stack skills. This should be super easy to solve but I'm really struggling with nginx's config. I have yet to find documentation that makes sense ...
2
votes
0answers
58 views

Block an user-agent in Nginx except those coming from a specific IP

I'm trying to figure out the best way to block an user-agent in Nginx except those comming from a specific IP. I have a solution that seems to work, but I would like to know if there is a better ...
2
votes
0answers
2k views

chrome requests get stuck pending

Description of issue We have a web server that is serving static assets. We are experiencing a problem where after you browse around some of the http requests get stuck in the "pending" state. In the ...
2
votes
0answers
305 views

Application layer firewall for WebSockets?

My team has built an intranet portal in Amazon AWS for a client, and on it, we have used WebSockets to do things like notifications and other minor stuff. We mostly send events from the server, but we ...
2
votes
0answers
924 views

Nginx as s3 proxy with private buckets

I'm trying to set up Nginx as a proxy for a static html/js webapp hosted on S3. I read a lots of tutorials and posts and I could make it work if my bucket is set as public. The reason I need Nginx as ...
2
votes
0answers
98 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
471 views

CentOS 7: Nginx systemctl hangs on start, why?

I compiled nginx with pagespeed and made the nginx.service file in /usr/lib/systemd/system/nginx.service but when i try to do systemctl start nginx it just hangs, nginx does start but systemctl hangs. ...
2
votes
0answers
399 views

nginx try_files redirect using wrong scheme when behind SSL termination load balancer (haproxy)

I have an nginx 1.6.2 server running as a backend behind a load balancer that does SSL termination. All communication to the backend servers goes over HTTP. Diagram of what's going on: /--...
2
votes
0answers
454 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
186 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 deprecated....
2
votes
0answers
289 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
638 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
3k 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
388 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
1k views

Is it really possible to use PHP sessions for authentication with nginx fastcgi cache?

I have recently switched an opencart instance from Apache+mod_php to nginx+fastcgi+php-fpm. I have been trying to leverage caching for most pages through fastcgi-cache. Unfortunately, many users ...
2
votes
0answers
420 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
154 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
71 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
202 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
676 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
69 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
1k views

Nginx proxy to Go dramatically reduces performance

I just finished coding up a small Go script listening with the Go http package. I wanted to put nginx in front of it (I need to serve static files in a subdir as well), but noticed that req/sec and ...
2
votes
0answers
419 views

NGINX using 100% of the server CPU when testing with Blitz.io

I'm facing an issue here and after four days of looking around I decided to ask for some help here, after all a million heads can think a lot better than one. I have a Ubuntu 14.04 server setup with ...
2
votes
0answers
692 views

Pyramid + Nginx + uWSGI Server 500 Errors

I have a uWSGI application written in Python using the Pyramid framework. Nginx is configured like below (I left out a few bits, but I don't think they will matter): upstream uwsgicluster { ...
2
votes
0answers
425 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
490 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
275 views

Can nginx set 'Origin' header when proxing websocket?

We know nginx can proxy WebSocket since version 1.3.13, and we also know some times WebSocket server will valid the 'Origin' header, so someone said you can do something like: proxy_set_header Origin ...
2
votes
0answers
263 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
186 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: (http:/...
2
votes
0answers
249 views

Nginx and dynamic X-Forwarded-For blocklist

I am running Nginx behind a proxy. I am getting visitors' real IP addresses through X-Forwarded-For HTTP request header. I'd like to block individual IPs based on a dynamic block list, up to 10000+ ...
2
votes
0answers
286 views

Why isn't puma using all of its threads?

I'm using puma and nxinx, and as far as I can tell it is only ever using a single thread even when I start it with the default of 16 threads or more. I've set up a fresh rails app, then gone through ...
2
votes
0answers
365 views

UWSGI is not creating my socket

So, i'm getting an error because my .sock file is not being created by uwsgi. I'm also running a VB with vagrant. my uwsgi.ini [uwsgi] master = true pidfile = /tmp/uwsgi-%n.pid workers = 12 enable-...
2
votes
0answers
3k 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
112 views

Nginx HttpRedis2Module get value only

I am trying to set up Nginx caching with multiple servers using a shared Redis instance for storage. I am using the HttpSRCacheModule, along with HttpRedis2Module. In the example configuration, both ...
2
votes
0answers
266 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
350 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
4k views

Nginx websocket 502 bad gateway

I'm trying to use nginx as proxy for websocket nodejs server, but I'm always getting 502 bad gateway. my domain config: upstream server { server 127.0.0.1:8090; } server { listen 8085; ...
2
votes
0answers
2k views

nginx service won't start after reboot + won't give output for service nginx status or start

A few weeks ago I configured an ec2 ubuntu server for my rails app. everything worked great. the database is on RDS and I use nginx and passenger for the rails app. anyway everything worked great ...
2
votes
0answers
3k 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. ...
2
votes
0answers
351 views

Load Average 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 ...