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

0
votes
1answer
27 views

502 Bad Gateway on Nginx acting as Reverse proxy to add ssl for Upsource and Hub

I have set up Jetbrains Hub and Upsource on a machine using the ports 1111 and 1112 respectively. These work, and if I access the machines using the local-network ip address of the machine they load. ...
0
votes
0answers
10 views

Nginx proxy_cache security for meteor apps

I have a meteor app running multiple instances and use nginx as a load balancer. I would like to make use of the proxy_cache directive so that meteor will only handle the ddp traffic and all html, CS ...
3
votes
2answers
42 views

Nginx site not getting picked up

My new site is not getting picked up. I've created appycontrol.staging: upstream appycontrol_staging { server unix:///var/www/appycontrol.staging/shared/sockets/puma.sock; } server { listen 80 ...
0
votes
0answers
15 views

nginx virtual hosting for default domain not working

I am trying to setup server name based nginx. I have one domain with three sub domain. For example suyashjain.com is my main domain, for which I am having one wordpress. www.suyashjain.com ...
0
votes
0answers
13 views

What makes NGINX change the value of the Accept-Encoding header?

If I install a default version of NGINX (1.10.0) on Ubuntu 16.04 and use it to proxy a random website, the value of the request Accept-Encoding, is what the browser set (i.e.: gzip, deflate, sdch). I ...
1
vote
1answer
30 views

nginx reverse proxy rewriting locations

ok, so i have a virtual machine http://10.0.8.247:80/phppgadmin/ running phppgadmin. I wanted to expose phppgadmin to the internet on admin.example.com, so I did server { listen 80; server_name ...
-2
votes
0answers
26 views

nginx says nginx isnt running as superuser, but it is

I get this warning when starting nginx: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2 however, ps aux | grep nginx ...
0
votes
0answers
17 views

Using nginx with nagios3, getting blank page

I'm trying to set up nagios3 with nginx on Ubuntu 14.04, and I'm having some trouble that I hope someone can shed some light on. I just get a blank page, instead of the expected Nagios page. It seems ...
0
votes
0answers
26 views

OpenSSL warning while building NGINX

I'm trying to compile NGINX ( ) pointing it to downloaded OpenSSL sources ( ). When compiling, the following warnings issued: WARNING: can't open config file: /tmp/openssl-1.0.1g/.openssl/ssl/...
0
votes
1answer
16 views

Nginx ignoring some config part

I have ubuntu 14.04 server, nginx 1.10.1 and couple sites with proxy_pass on it. All works fine until i want add one more site for static content. When i try connect to my new site i suddenly get ...
0
votes
0answers
22 views

How to configure Nginx to make Gitlist work correctly

Here the full story: To make team project more easy to manage, view and follow, I had to build a project to setup a complete repository to centralize all of our differents projects. For this, I ...
0
votes
1answer
31 views

Get network interface Nginx is receiving request on

I have a server with multiple network interfaces, and I want to write a proxy server, which would listen on all of these IPs. My config so far: server { listen 111.111.111.111:40000; ...
0
votes
1answer
34 views

How to use a hypen in cookie names for nginx?

I want to use the new cookie-prefixes, which are not yet standardized by the IETF. These are __Secure- and __Host-. So let's e.g. set this cookie (here the header returned by the server): Set-Cookie:...
0
votes
1answer
22 views

nginx root directory as subdirectory in domain

I use nginx/1.10.1 with PHP 7 FPM. I cloned phpmyadmin from Github to /var/www/vhosts/phpmyadmin My domains are placed in /var/www/vhosts/domain/domain.tld Domain works with my nginx config fine ...
0
votes
1answer
21 views

Reload nginx even when configtest failed

I would like to be able to reload nginx even when the configtest fails. Why I want this? Well in my case multiple users are able to modify nginx configs. Initially these configs are syntacticly ...
0
votes
1answer
67 views

NGINX Reverse Proxy, Config Video(MJPG) Stream to use a single connection to the Backend Server

I have a question/problem weather it is possible to configure a NGINX Reverse Proxy so that it does not Proxy every Request of a Video Stream to the Backend Server, instead Opening a Single Connection ...
-1
votes
0answers
37 views

Serving static files through NGINX proxy_pass

I´m running a Linux vServer with NGINX 1.11.1 and PHP 7.0. I have a domain that is used for a marketing page based on Wordpress. The app (Based on Laravel) should be available at example.com/app. ...
0
votes
0answers
17 views

Nginx proxy_pass with multiple, concurrent destinations (i.e. “multiply” the request)

I was wondering if there is any way to have a request be multiplied by nginx's proxy_pass (thus resulting in two or more requests instead of round robin). Something like this doesn't seem to be ...
0
votes
0answers
20 views

Too many waiting Nginx workers Vs writing. Is that normal or indication of wrong configuration?

Please see this graph As you can see on the image there are 66 waiting and two writing workers.. Any reason why there are so many idle workers? Can we lower these waiting workers and only call them ...
0
votes
0answers
20 views

Trust certificate for OCSP, but not for client certs?

According to the nginx docs, you can specify certificates to be trusted for both OCSP response and client certificate verification: ssl_trusted_certificate / ssl_client_certificate Specifies ...
0
votes
1answer
26 views

503 Bad gateway for php only html works fine

I have configured aws instance from amazon ec2 linux image and configured nginx and php on server. Server serves html pages normally but don't serve php pages and also shows 503 Bad gateway error when ...
0
votes
1answer
33 views

Setting a different cache header per site-section in nginx

For different website sections we use different caching headers. For example: the /wp-admin section shouldn't be cached at all, and the /blog section only for 4 hours instead of the default 2 days. ...
1
vote
3answers
48 views

Configure nginx to server index from subfolder

I installed a nginx webserver locally. The web root is under /var/www Now I have a project which looks like this: /var/www /test-project /src /tests The src folder is the folder, which ...
0
votes
4answers
120 views

Optimal value for Nginx worker_connections

Nginx worker_connections "sets the maximum number of simultaneous connections that can be opened by a worker process. This number includes all connections (e.g. connections with proxied servers, among ...
1
vote
1answer
89 views

Why can't new clients reuse existing keep-alive connections?

As mentioned in http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive It should be particularly noted that the keepalive directive does not limit the total number of connections ...
0
votes
1answer
65 views

Phpmyadmin on FreeBSD 10.3 and Nginx 1.10.1

I am trying to install Phpmyadmin on a FreeBSD 10.3 server with Nginx 1.10.1 but it is not working. The Php version is 7. It is a WPMU server, everything is working except Phpmyadmin which is giving ...
0
votes
0answers
50 views

elastic beanstalk docker nginx uwsgi django in same container giving 502 bad gateway error

I'm deploying a django application in elastic beanstalk and docker using nginx and uwsgi. Below is the Dockerfile: FROM ubuntu:14.04 MAINTAINER Nijo James # Update packages RUN apt-get update -y #...
0
votes
0answers
28 views

Microcaching with nginx reverse proxy for gunicorn upstream webserver (Django application)

I need help in setting up a microcaching config for my nginx reverse proxy server. I have rudimentary webserver knowledge - enough to get me started on a vanilla setup (with quite a few missteps!). So ...
0
votes
1answer
20 views

nginx download php script on HTTP but not in HTTPS

I'm nginx with php-fpm on my server. I configured nginx with SSL (Let's Encrypt) and made HTTPS the default instead of HTTP. The problem is that when accessing the web via HTTP the php file is ...
0
votes
1answer
23 views

nginx how to have a dynamic order of try_files

I don't know how better to phrase that question so let me know if there is a better way but here is what I want to do. I have an app that sends an html file based on the request url which also ...
0
votes
1answer
110 views

Getting HTTP/1.1 404 Not Found Server: nginx/1.4.6 (Ubuntu)

So I installed nginx in digitalocean droplet.. so far so good. But now I can't get a bootstrap template to show, I tried accessing a png file and nothing. When entering curl -I http ://104.131.23....
1
vote
1answer
28 views

Nginx Proxy Pass and remove .php extension from URL

I'm trying to Proxy Pass /do/uploads.php?id=xxx to /do/upload?id=xxx in Nginx Here is my try location /do { rewrite /do/uploads\.php /do/uploads$1 break; proxy_pass http://domain/do;...
1
vote
2answers
23 views

Nginx not loaded chunk-stream1-$Number%05d$.m4s [closed]

I have a issue when nginx need to get content from the server that are named : chunk-stream1-$Number%05d$.m4s It just give me 404, and i have search about some rewrites but i have still not find a ...
0
votes
1answer
65 views

Attempting to block “wordpress” useragent is overloading CPU [duplicate]

I've had some DDoS issues - specifically the XML-RPC exploit (wordpress) wherein thousands on thousands of Wordpress instances attack my machine. I have the following in my nginx server block: ...
1
vote
1answer
36 views

How to config mutiple domains with Varnish and nginx

I read this article but I can't make my case work http://stackoverflow.com/questions/3334023/configure-multiple-sites-with-varnish This is my problem I have 2 domain : mysite1.com and mysite2.com ...
0
votes
2answers
25 views

Strange characters in nginx log starting with \x

I was hacked and checking nginx logs I found several requests like this one: 169.229.3.91 - - [18/Jun/2016:09:42:19 +0000] ")\xE7\xD1?\xD6\x18.\xC0\xCE\xA3\x7FR\xEA~O$\x0BLi\x13\xA0m\xE7\xF0H4\x92\...
-1
votes
2answers
12 views

What does the FAIL2BAN BadBots block ? Only Authentication related?

I am wondering if fail2ban is used only in order to block IP addresses that are from which there are authentication failures (SSH / HTTP auth. etc) or that it is also used for blocking Bots which ...
0
votes
1answer
46 views

Full end to end encryption with AWS Elastic Load Balancer, Nginx and SSL

You will see a lot of places on the web telling you the way to setup SSL with an AWS ELB is to set up a certificate on the load balancer and then forward traffic from port 443 to 80 so that traffic ...
3
votes
0answers
26 views

exclude IP from nginx access log

How to exclude some IP address from access log? This is my config: server { listen 443 ssl; [...] access_log /var/www/web/log/access.log; error_log /var/www/web/log/error.log; location / { ...
6
votes
2answers
276 views

10/20/40Gbps nginx large files caching webserver

I would like to find out the best possible configuration/hardware to deliver 40Gbps from a single server in this question. Situation We have a video share proxy server that offloads peaks from slow ...
1
vote
2answers
44 views

nginx sub directory wildcard rewrite

I have set up a server block on my nginx server, e.g. with domain testsite.com. I want to be able to install separate WordPress installations into direct child folders of the root folders, e.g. /var/...
0
votes
1answer
17 views

Implemeting Nginx as reverse proxy on an EC2 instance, for an Eclipse Che farm

Looking for scaling Eclipse Che (a cloud IDE), I'm implementing a Che Farm. In short, a group of Eclipse Che instances behind a reverse proxy. Ok, I'm implementing the reverse proxy using Nginx on ...
0
votes
1answer
29 views

Two wordpress servers setup with Nginx

I am trying to set up 2 wordpress servers with Nginx. Both sites are up and running fine: https://server.io/learn https://server.io/event However, I cannot access the page I created: https://...
2
votes
1answer
37 views

Configure nginx to send response with header and footer for HTTP body

I have a collection of memos in a folder /memos/items/ A single memo used to contain a SSI include statement for a HTML header part, up to and including the opening <body>, followed by the HTML ...
0
votes
0answers
22 views

Do I need to block my application port(In security group) for the security in Linux EC2 instance

What I DID I have two Play framework web applications which runs in 9001 and 9002 ports in AWS EC2 instance. I am using the Nginx proxy server to routing the two applications. I have configured the ...
0
votes
1answer
18 views

Nginx Subdomain Rewrites to Server Directory

We're making a move over to some Nginx servers from Apache. While we've used Nginx for various sites its been in a mostly basic config. However, one of the 'sites' (multiple actually) we host is a ...
-2
votes
0answers
15 views

high io wait in file uploading process

I have a server with the following information : two hard disk, sas and raid 6(50 T) 98G of Memory Intel(R) Xeon(R) CPU E5620 @ 2.40GHz 16 core OS is Ubuntu 16.04 and Swap is disabled We use ...
0
votes
3answers
36 views

Nginx SSL config returns too many redirects, but regular http version is fine

I have recently tried to add SSL termination to my NGINX server configuration. The regular http reverse proxy/load balance version is working fine. Unfortunately, the current config is returning "too ...
0
votes
1answer
20 views

try_files with a single @location?

I started from https://gist.github.com/mattd/1006398 and now I have this: root /data/example.com; location /sites/default/files/ { try_files $uri @proxy; } location / { ...
0
votes
1answer
77 views

nginx conditional proxy: invalid number of arguments in “try_files” directive

I have nginx used as a proxy for a handful of web services, running in a docker container, using the config below. I have the configuration to 90% of where it needs to be, but the problems for the ...