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

1
vote
0answers
20 views

Route content using nginx if a specific condition is met

I have 2 LAN networks which are united w/ IPSec tunnel: 10.10.10.1/24 10.10.20.1/24 One of my internal sites is running on 10.10.10.50, which is serving users heavy content, such as 300-400MB ...
1
vote
0answers
25 views

nginx proxy cache configuration for user authentication web application

I have a web application in node + express + passport + mongo database + ejs and single application is configured to handle all the sub-domains. I'm using nginx as proxy server, I need to and must use ...
1
vote
0answers
49 views

NginX with GeoIP - what is returned for geo code when no mapping is found?

As the tests I conducted (using Java API to read GeoIP.dat, as well as local test) might be insufficient, I was wondering what happens on NginX when geo-ip module is configured, and when no IP to ...
1
vote
0answers
111 views

nginx serve big images

There are some image on my page will be lost in safari, message in console Failed to load resource: The network connection was lost. images server be different domain, I can see the image properly by ...
1
vote
0answers
53 views

host header change upstream servers nginx

I have following config in my config file upstream static { server server1.dom.com; server server2.dom.com; } server { listen 80; server name dom.com; location ^~ /images/ { ...
1
vote
0answers
74 views

nginx multiple static content servers on subdomains with url rewrite

I have one server with nginx-frontend and apache-backend. I need to set up nginx to return images from the other two servers like http://example.com/images/*.jpg -> ...
1
vote
0answers
26 views

Nginx reverse proxy gets blocked

We run a wordpress blog in a subdirectory from our main domain. domain.com => Server A (Nginx) domain.com/blog => Server B (Apache) The blog itself lies on a different (cheap shared hosting) ...
1
vote
0answers
51 views

php-fpm error log is trucated

I'm setting up test environment where I have nginx and php-fpm on centos 7. I have successfully setup everything and I can run php code. This is my configuration: nginx version: nginx/1.9.9 ...
1
vote
0answers
50 views

nginx passenger, setting the umask

I was wondering how to set the umask for nginx or passenger or both processes. A search seems to only bring up Apache. Any help would be very much appreciated! (This is on Debian.)
1
vote
0answers
59 views

fastCGI sent in stderr: “Primary script unknown” while reading response header from upstream files exist

I've looked at other answers but I'm still failing to see the issue with these configs: user nginx; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log ...
1
vote
0answers
50 views

WordPress on two separate servers, first one with nginx, second one with php-fpm. Where to keep static files?

For example, I have two servers (or VMs). On the first one I have Nginx installed, on the second one - PHP-FPM. And I need to deploy some app, like WordPress, which does not have two separate folders ...
1
vote
0answers
61 views

Website configured in Nginx returns 404 error

I have a Amazon EC2 machine using Nginx. I have MediaWiki running and I would like to use Phabricator (another application) on the same server. My configuration file for Phabricator is: server { ...
1
vote
0answers
232 views

uWSGI TCP/IP host:port vs Unix socket

We are running a Python WSGI server (uWSGI) and changed to socket file instead of a tcp/ip localhost:port connection. Now our uwsgi logs are full of errors like IOError: write error SIGPIPE: writing ...
1
vote
0answers
61 views

Nginx reverse proxy serving wrong host

My Nginx reverse proxy is doing something very odd. One domain in particular is not resolving correctly but instead showing the site of a totally different host. Only wiki.example.net is wrong, it ...
1
vote
0answers
276 views

I get “ERR_EMPTY_RESPONSE” on my website when i'm using proxy

I have a dedicated server with: Ubuntu 14.04.3 BIND 9.9.5-3ubuntu0.5-Ubuntu (Extended Support Version) Nginx version 1.9.6 On Port 81 PHP 5.5.30 (cli) with Zend OPcache v7.0.6-dev MySQL 5.5.45 UFW ...
1
vote
0answers
31 views

Nginx allow cross origin requests in specific folder

How do I allow cross origin requests in only a specific folder or folders in Nginx? In apache, I have an .htaccess file in the folder with the following content: <FilesMatch "\.(json)$"> ...
1
vote
0answers
25 views

How to manage and test complex Nginx configs?

I am 1) looking for ideas of how to manage and 2) test complex nginx configurations across different environments. Currently I am storing Nginx configurations in a github repo, separating ...
1
vote
0answers
99 views

nginx force http header overwrite

We had some misplaced http headers on our sites set up for around one day which creates problems on some of our subdomains. Resolving this fault is pretty hard because the headers we sent are valid ...
1
vote
0answers
27 views

nginx redirect, partially working

I am configuring a wordpress site that was working under apache and which I have moved to nginx. The site is for a separate part of a company's activities, i.e., 'trading as'. The parent compamy is ...
1
vote
0answers
79 views

Allow insecure connection on nginx

I have a website running on nginx and with HTTPS enabled. For any http request, I redirect users to https. The problem is that some of our clients can't access the website from their work computer due ...
1
vote
0answers
67 views

Varnish - behind, in front of, or instead of load balancer(HAProxy/nginx)

I intend to run a few tiny ARM "physical cloud" servers behind a load balancer(either HAProxy or nginx itself), but i can't decide where to put Varnish in the whole mess. I can either have it on each ...
1
vote
0answers
41 views

Nginx htpasswd getting 403 after successful login

I want to access the folder /folder/subfolder/ in the webservers root (/var/www/dl.somewebsite.com/files/) with a password the rest should be public accessible. Using the script below I get a 403 ...
1
vote
0answers
62 views

Nginx url rewrite stops going through location code

I'm trying to configure my Phalcon (php framework) project on Nginx. Unfortunately I can't manage to make the rewrite work. In order to better understand my problem please check out the config file: ...
1
vote
0answers
25 views

nginx naxsi error - could not build the wlr_url_hash

I am getting this error in an nginx server compiled in with naxsi nginx: [emerg] could not build the wlr_url_hash, you should increase wlr_url_hash_bucket_size: 512 nginx: [emerg] $URL hashtable init ...
1
vote
0answers
117 views

Supervisor doesn't run gunicorn with django

I want to run supervisor in my Django server with gunicorn and Nginx, but when I run "supervisord" the supervisor log says: 2015-11-06 23:23:36,746 INFO daemonizing the supervisord process 2015-11-06 ...
1
vote
0answers
78 views

Nginx decoding ampersand

We have canonical style URLs that we use for FB sharing. Facebook can scrape these pages for the info it needs to... these pages generate a specialized image to be shared by the user. A user can ...
1
vote
0answers
180 views

How to configure virtual host in nginx for wildfly

I need to setup virtualhost on nginx for wildfly server. i was using apache virtual host earlier and i want to do similar settings in nginx I have followed steps given in this article ...
1
vote
0answers
61 views

Cache dynamic images with nginx x-Accel

We are trying to cache the request to images on our nginx servers. Even though the images are dynamic, the same image is requested frequently in a short time-span. Currently we are trying to solve ...
1
vote
0answers
35 views

Nginx ignoring Yii query strings after ampersand

Im deploying a Yii based application, we are sending query strings via ajax to search for products, on the local apache environment these strings are processed but on our production server running ...
1
vote
0answers
20 views

Make Varnish check for html static before serving

I was thinking of writing some logics to my application so that it can write the static page content to s3 or some CDN and serve primarily from there. But am not sure if this is possible. For ...
1
vote
0answers
40 views

handle 2k image request a second with nginx

We have made an app that displays dynamic images. We are trying to handle a load of 2k image request a second with nginx. The size of the image is about 0.13 mb and we are using php with this code to ...
1
vote
0answers
120 views

Nginx, redirect all resquest to single index.php file in subfolder

I'm trying to move my website from Apache to Nginx. My website is structured like this : www_root public other folders All requests are redirected from www_root to public folder with an ...
1
vote
0answers
26 views

nginx, redirect to remove a part of filename

I know there are plenty of questions how to replace part of URL with something else (or nothing) in nginx but I really suck in regular expressions and am absolute noob in nginx. So could anybody ...
1
vote
0answers
52 views

Safe to remove unused, default nginx files (fastcgi, uwsgi, scgi)?

I'm using nginx purely as a reverse proxy. My /etc/nginx/ looks like this: drwxr-xr-x. 2 root root 6 Jul 3 14:44 conf.d drwxr-xr-x. 2 root root 6 Jul 3 14:44 default.d -rw-r--r--. 1 root root ...
1
vote
0answers
43 views

Health-check daemon doesn't send Host header

I have a django application running behind nginx. All of it is running behind a load balancer. Load balancer is using HTTP health-check to enable/disable nodes. The problem is that health-check ...
1
vote
0answers
30 views

How to configure nginx to use two locations for specific conditions

I have two locations: location ~ ^/[^/]+/[^/]+/reg/.*$ { dav_methods DELETE MOVE; ... } location ~ ^/[^/]+/[^/]+/.*$ { dav_methods PUT DELETE MKCOL MOVE PROPFIND; ... } Basically ...
1
vote
0answers
139 views

Nginx with Chrome: 400 Bad request (premature end of spdy header block)

I'v discovered, that may server's log have many of HTTP 400 Bad requests, originating from clients using Chrome browser, with a rapid DOS-like interval. (40-50 requests per second) ...
1
vote
0answers
21 views

php5-fpm connection timeout/connection refused

We have a webpage with ~20000 pageviews/day. This page usually uses ~15-20 php5-fpm children, but sometimes it reaches the maximum number of children and the site will be unavailable about ~15 mins. ...
1
vote
0answers
119 views

Nginx+pagespeed module | image cache time is 5 mins on first page load

I have a problem with nginx/pagespeed module. The images cache-time is default 5 mins on first pageload. First time: Second time: There are in my nginx.conf: ## # PageSpeed ## pagespeed on; ...
1
vote
0answers
59 views

Lua flavored Nginx rewrite or internal redirection cycle

I'm new both to nginx and lua. I'm trying to follow this tutorial http://leafo.net/posts/creating_an_image_server.html#installation_requirements but for the life of me I can't get the nginx.conf ...
1
vote
0answers
91 views

php-fpm pool processes taking 250MB each

My centos 6.7 server has only my php and mysql based low-traffic websites (total around 3000 page views per day for all websites) using nginx web server and virtualmin (no wordpress or external ...
1
vote
0answers
471 views

How to setup forward secrecy in nginx so that iOS9 (Xcode7) app with default ATS settings can connect to my server?

iOS9's App Transport Security states that connections that do not meet certain requirements will fail. Below are the requirements quoted from Apple's document ...
1
vote
0answers
92 views

Keep multiple slashes and all traling slashes when using nginx proxying to apache

So a little background. I'm in the process of moving website from old servers with Apache to new Ubuntu Servers with NGINX proxy to Apache. There will be a transition period where the website ...
1
vote
0answers
231 views

nginx proxy_pass with dynamic upstream servers

We're currently stuck in a situation where we are using nginx as our main frontend server for a set of services backed by a dynamic DNS based service discovery with Mesos-DNS. Our nginx configuration ...
1
vote
0answers
179 views

Setting up nginx to proxy (adding SSL) SMTP with authentication

In my organization we are migrating a certain web+mail setup, and I think that maybe nginx can be suited to do what I want, but I cannot fully understand the official documentation. I have a certain ...
1
vote
0answers
56 views

nginx,php-fpm error while with apache no errors

I have a opencart application deployed with nginx,fastcgi. Im using RDS as Mysql server. Lately,I have been having this errors in my log and I ran load test with siege for 400 concurrent users.I'm ...
1
vote
0answers
431 views

nginx: An existing connection was forcibly closed by the remote host

I am running nginx on Windows Server 2008 R2 and it seems to be crashing, it also uses php-cgi with it and the php-cgi is part of the problem. After about 30 seconds of being on the page php-cgi ...
1
vote
0answers
40 views

nginx php5-fpm doesn't show PHP message

I looked in my nginx error.log and saw that it is overfilled with these errors: FastCGI sent in stderr: "PHP message:" while reading response header from upstream, client: ..., server: ..., request: ...
1
vote
0answers
86 views

NGINX infinite loop when I try to redirect http to https

I'm moving my entire website from http to https Since I have a few domains, I need to redirect then to the https version of my website. The problem is that when I try to redirect the original domain ...
1
vote
0answers
454 views

Didn't receive any response from local server in the machine

So I've server linux using NGIX with docker and many Applications django with UWSGI. So I need to create a job to execute inside a container of docker. This jobs will do a request to a some url of ...