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
49 views

Nginx limit_req_zone ignores rate value

I have a strange behavior my config looks something like this: http { limit_req_zone $binary_remote_addr zone=nocachelimit:10m rate=120r/m; } ... location "/api" { { limit_req zone=...
1
vote
0answers
93 views

Getting 404 Not Found while PHP works in background - Nginx

I have noticed that I get 404 - Not Found when calling a .php file even if the script works in background. The php file downloads a long Json and populates a db until I close the window. I am using ...
1
vote
0answers
70 views

PHP page refuses to appear despite checking php-fpm, SELinux, and nginx

Problem I have a small web server that hosts a small PHP page that performs a very small function. I used to host this on another machine. I move the website to a new machine with a different ...
1
vote
0answers
121 views

Nginx proxy with varying source address

I have a working nginx configuration to proxy all requests to a server from a range of source IPs. I currently have 20 source IPs set up, and the configuration is quite massive. I removed the other 18 ...
1
vote
0answers
188 views

HTTP Digest authentication on proxied server

I have a 1.) client, a 2.) nginx powered proxy server and 3.) some servers which addresses are unreachable for the client, the proxy handles the communication from the client to these servers. ...
1
vote
0answers
206 views

“404 not found” error nginx/1.8.0 on fedora 22

I try to run App already running on Apache server on Nginx In fact it's the first time for me with Nginx server anyway My problem showing when i need to access any app under Nginx Root Dir I ...
1
vote
0answers
67 views

High load with Nginx - with low traffic websites

Once in a while (maybe once a day?) I've got a load average of 10. That lasts for like 30 min (where I can't reach any of websites on this server) and then it's fine again. I just happened to be via ...
1
vote
0answers
114 views

Gitlab Images not found with nginx proxy (load balancer)

I have the following nginx config: server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /usr/share/nginx/html; index index.php index.html index.htm; ...
1
vote
0answers
30 views

nginx + php-fpm/hhvm specific openbase_dir requirement

I have structure like this: user1 - site - public - functions.php user1 - site - public - functions.php appuser - app - index.php nginx sets php to appuser - app - index.php which includes ...
1
vote
0answers
67 views

Nginx / git / fastcgi server not working

I set up all the needed components for a Git server on Nginx using FastCGI and followed the combined suggestions of a few tutorials to end up with this configuration: server { listen 80; listen [:...
1
vote
0answers
118 views

Nginx Reverse Proxy File Upload Failure

I am running Nginx v1.8.0 to serve all my static files and node.js to do the dynamic stuff. One of the things Nginx needs to do is proxy files over to node.js which stores the file. node.js seems to ...
1
vote
0answers
35 views

nginx, redirection http to https not working as expected

My intention is to redirect all requests to https:// prefixed URLs for both the naked domain and for the www.* equivalent. The acme-challenge URL is to be excluded. I've tried with the below config, ...
1
vote
0answers
35 views

Troubleshooting 403 gateway error

We have a staging machine that has recently been returning a 403 status. It is a centOS machine running nginx. Nginx passes off some traffic to a scala Play app and Apache which runs a PHP app (...
1
vote
0answers
24 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
43 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
81 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
142 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
70 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
80 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 -> http://i1.example.com/images/*....
1
vote
0answers
28 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
61 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
57 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
65 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
52 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
155 views

NGINX - rewrite_log does not work log rewrites anywhere

I was attempting to learn rewrites, by making something like this: ^/blog/install/(.*)$ --> /blog/install/index.php?_p=$1 However these rewrites simply kept failing, and it was difficult to ...
1
vote
0answers
72 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
299 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
96 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
360 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
37 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
27 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
140 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
29 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
88 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
88 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
45 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
67 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
28 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
149 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
98 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
224 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 http://nginx.org/...
1
vote
0answers
86 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
42 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
23 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
41 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
132 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
28 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
71 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
47 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
32 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 ...