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
65 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
40 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
145 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 ...
1
vote
0answers
54 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
24 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
109 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
71 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
156 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
55 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
33 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
19 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
39 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
112 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
50 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
40 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
29 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
136 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
108 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
56 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
87 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
455 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
85 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
211 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
158 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
54 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
400 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
80 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
341 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 ...
1
vote
0answers
153 views

UWSGI SIGINT/SIGQUIT received

I'm trying to use nginx with uwsi. I wrote uwsgi ini file and test it with uwsgi --ini site.ini Everything works fine. But when I try to run the site I got the following error (from log file): *** ...
1
vote
0answers
82 views

How to let nginx simply pass a request to a forwarding proxy server?

'm behind my corporate forwarding proxy. When I test my application locally, for some requests, I want to configure nginx to proxy_pass those requests to some external domain servers. below is my ...
1
vote
0answers
18 views

NGINX If -e to try_files

I have read Pitfalls and IfIsEvil and now want to try to have my full nginx config without ifs. But I am not able to convert this additional PHP Rule: if (!-e $request_filename){ rewrite ...
1
vote
0answers
91 views

nginx proxy_pass adds port number to URL

I have a standard Rails app deployed to Heroku. I am using custom buildpacks to install nginx so I can create some rewrite rules and a reverse proxy. I have it mostly working save for one issue. I ...
1
vote
0answers
131 views

Nginx listening on different port but not accessible from outside

OS: Ubuntu 12.04 I have both Apache and Nginx running. Apache is listening on port 80 and that is why I want to make Nginx listen on different port, in this example it would be 90. Below is the ...
1
vote
0answers
27 views

Domain is forcing HTTPS automatically when accessing by HTTP

I have a project based on Nginx + Node.js. When I'm trying to access it by my domain, it automatically redirects from HTTP to HTTPS and I get a 404 because my deployment is not ready for SSL. When it ...
1
vote
0answers
30 views

Can I operate on a response object in NGinx?

I am attempting to record http traffic in a test environment for later playback with Gor. So far I have the following configuration that makes use of the post action to forward on the request to the ...
1
vote
0answers
178 views

Is it correct that Nginx reports HTTP/1.1 status codes with SPDY (3.1)?

Questions Do I have to look at response headers like X-Firefox-Spdy to determine which protocol was actually used? Can I assume that Nginx will report HTTP/2 status codes once the implementation is ...
1
vote
0answers
520 views

Nginx as reverse proxy for GitLab with SSL?

I have GitLab's nginx setup to listen at 127.0.0.1:8088 . Then I have a system nginx (installed via apt-get on Ubuntu) setup as reverse proxy with HTTPS: upstream gitlab { server ...
1
vote
0answers
201 views

Gitlab redirect loop when requesting archive.zip

I've set up a Gitlab instance using nginx as the web server on an Arch machine. The steps I've taken to do so are on the Arch Wiki. Everything is working at present apart from the download archive.zip ...
1
vote
0answers
124 views

Nginx can't speak with uwsgi (prematurely closed connection)

What I'm missing in my nginx/uwsgi/php-embed configuration? rpm -qa|grep php php-cli-5.4.16-36.el7_1.x86_64 php-xml-5.4.16-36.el7_1.x86_64 php-devel-5.4.16-36.el7_1.x86_64 ...
1
vote
0answers
444 views

recv not ready (11: Resource temporarily unavailable)) (nginx/1.1.19, supervisorctl, gunicorn )

I have site on Ubuntu 12.04.5 LTS, django (supervisorctl, gunicorn). It work 1 year without problems, but today my zabbix server sending me messages about alerts (every 3-7 minutes) about timeout (for ...
1
vote
0answers
234 views

Websockets behind Apache and Nginx proxy connection not upgraded

I have a problem. Apache listens on a white ip and proxies all requests /ssd on nginx that proxies requests /city-dashboard to another server with websockets. In apache config: ProxyPass /ssd/ ...
1
vote
0answers
21 views

Squid option equivilents in nginx

I am trying to move some caching over to nginx from squid and I'm having some issues replicating some options. I have these options on one of my squid patterns ignore-reload ignore-no-store ...
1
vote
0answers
73 views

Nginx reverse proxy variables and resolver

I am trying to set up reverse proxy with a wild card on both ends, eg. test.example.com to test.local, etc. So far I have this and it is working. server { listen 80; server_name ...
1
vote
0answers
337 views

Nginx proxy_pass and absolute paths

I'm trying to run some nodejs app on a server (Ubuntu 14.04), using Nginx and i'm almost done. Here's my server configuration (/etc/nginx/sites-available/default): server { listen 80; ...
1
vote
0answers
131 views

Inconsistency in TCP and HTTP connection management

I observe following scenario in WireShark: The problem I see here is that after receiving [FIN, ACK] from server (4090) and acknowledging it (4092), http client attempts to send another HTTP ...
1
vote
0answers
106 views

Getting 404 on Nginx configuration for SSL on subfolder only

I need to keep the root of a domain strictly running non SSL but allow a subfolder to use SSL. The current configuration I took from ...
1
vote
0answers
213 views

mywebsite.com/wp-admin it redirects to /wp-login.php and displays “File not found”

On mywebsite.com, I have running docker container with wordpress. I started it as docker run -p 8000:80 --name docker-wordpress-nginx -d and docker ps shows 0.0.0.0:8000->80/tcp and on my ...