nginx (pronounced "engine-x") is a lightweight, high-performance Web server and reverse proxy as well as IMAP/POP3 proxy server.

learn more… | top users | synonyms

1
vote
0answers
12 views

Nginx does not distribute requests evenly on cores

We are hosting a big online event spanning a few hours, and are expecting around 10 million unique visitors to visit within five minutes. We host everything on Google Cloud using a network load ...
1
vote
0answers
13 views

having multiple condition in the config file

I would like to have return 301 https://$host$request_uri; to be executed only for a few cases. I know nginx doesn't support && or || in the conditions and this is a problem for me. I host a ...
1
vote
1answer
9 views

Nginx config to redirect to $URI

I have a problem with nginx. If you call "example.com" or "example.example.com", nginx redirects it to "www.example.com" like I want without a problem. But it doesn't redirect if I enter an URI like ...
0
votes
1answer
19 views

(Re-written based on feedback) Redirect traffic based on url to different ip address maintaining port and url information (nginx)

I am re-writing this as my previous version caused some confusion. We have a QA version, a UAT version, and a DEV version of webapp. Users need to access these via ...
1
vote
1answer
31 views

Creating subdomain with nginx server block returns Server Not Found

this is a problem I don't get to solve. I have a VPS on DigitalOcean, installed manually a LEMP stack on it and I have the domain with hover.com Everything seems to work if you visit my server ...
2
votes
1answer
24 views

NginX + WordPress + SSL + non-www + W3TC vhost config file questions

I have the following questions about my server block(s) for a WordPress site running solely on https, with nginx and W3TC browser caching. Environment: Ubuntu - 14.04LTS nginx - 1.4.6 ...
0
votes
0answers
25 views

Running Python and PHP on the same server

I've got Django, Gunicorn, and Nginx set up and working nicely together. I'm only going to have a few pages on this Django website, so I'm trying to I'm trying to set up the server such that files ...
1
vote
0answers
34 views

NGINX + NodeJS Performance Issues

I have one server running a Docker + NodeJS application and a load balancer running nginx. Before upgrading to two servers, I wanted to attempt to replicate traffic statistics for the load balancer ...
0
votes
0answers
21 views

Drupal application load troubleshooting

I'm receiving some sporadic high server load on a Drupal application (really high. 8 cores, load average of 50). The load is normally sitting between 5-10. The Drupal application sits behind a ...
-1
votes
0answers
18 views

Nginx webserver stop working after 5 minutes [on hold]

I have a digitalocean droplet running ubuntu 14.04 and nginx. Everything was working fine until yesterday when I decided to activate my ssl certificate from comodo. I had a hard time getting the ...
1
vote
0answers
17 views

Interpreting Siege results with Nginx

I am trying to compare the performance of a clutch of web servers using Siege. Whilst the results from all the other servers are easy to understand I am having some difficulty understanding the ...
0
votes
1answer
23 views

CSS & JS & images = 404 for WordPress blog in Rails + Nginx environment

I'm pulling out my hair on this one. You can see yourself here - http://starterpad.com/blog/ - that all the images, CSS, and JS files are 404 errors. The main StarterPad site (http://starterpad.com) ...
0
votes
0answers
10 views

And another FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream,

having some issues with 'file not found' or FastCGI sent in stderr. From what I have searched and researched about the issue it's due to the fastcgi_param SCRIPT_FILENAME not being able to locate the ...
-1
votes
0answers
43 views

Nginx proxy does not load image or css?

I am trying to using Nginx Proxy to reach to a webserver that is running Apache on port 80 and uptime (nodejs application) on port 8082. I am succesfully able to reach the destination and even see the ...
2
votes
0answers
56 views

nginx how to block this lightweight DDoS

I have a movies related Wordpress site running with a large database(around 150k posts). For some days during the important traffic hours we get hit by a small scale DDoS which slows down the site ...
-1
votes
0answers
18 views

Nginx not starting as a Windows Service [migrated]

I'm trying to run nginx as a service on windows 8 but i'm unable to start it as a service. I don't see any error in the logs after running .\nginx -c conf\nginx.windows.conf in the powershell. Cursor ...
0
votes
1answer
32 views

TCP: out of memory - Nginx

I'm running a high traffic site on a nginx server. Last fews days I'm having problems with my VPS locking up (unable to SSH, and nginx seems to be down). When I look in the logs I can see the ...
-4
votes
0answers
27 views

nginx mp4 hotlink protection in folder [on hold]

I want to enable Nginx mp4 hotlink protection in some folders not all directories. how it can be done? I tested this code but doesn't work for mp4 location /movies/ { valid_referers none blocked ...
1
vote
1answer
35 views

NGINX and Chrome [duplicate]

Going a bit mad here, pulling my hair out. The site on http://alpha.draser.co.uk works on IE and Firefox (only tested those) and doesn't work on Chrome. I've tested this on my computer and a remote ...
0
votes
1answer
19 views

Unable to reach apache web server through nginx proxy

I have apache server running on the following 23.xxx.xxx.10:80. I am trying to reach to one of the folders ( /var/www/cfbrokerlogs) using nginx proxy as defined below. However, when i try to reach ...
1
vote
1answer
47 views

(111: Connection refused) while connecting to upstream - Opsworks Rails 4

I deployed a rails 4 application in OpsWorks (Ubuntu 14.04, nginx and unicorn), when I open the homepage I'm getting a 502 Bad Gateway error. In nginx/error.log I can see this error: 2015/01/25 ...
0
votes
1answer
20 views

How to read an authorization request header from nginx

I have installed nginx 1.6 and I want to know how to read an authorization request header from nginx. If the authorization header is present, then I need to forward to success page success.html. If ...
0
votes
0answers
18 views

nginx upstream an ufw

I have a WSGI server on port 8080 and Nginx with following setup: server { location / { proxy_pass http://localhost:8080; } } when I enable UFW I can't access my page in ...
0
votes
1answer
28 views

nginx: url rewriting not working

I'm using Jelastic with nginx 1.6.1 and would like to use friendly urls without the .php extension. So if someone visits for example https://domain.com/faq.php nginx should rewrite it to ...
-3
votes
1answer
24 views

nginx sub-folder with separated root

I have a little problem. I have a wordpress installation in /var/www/xyz/wordpress and now I want to have a piwik installation in the path /var/www/xyz/piwik My current nginx configuration ...
1
vote
1answer
18 views

Nginx rewrite module not working

I've read a lot of topics about it, but couldn't solve my problem. After moving from APache to Nginx I can't set rewrites to handle my forums friendly urls. My forums is in /forum/ location of the ...
0
votes
0answers
23 views

Stop Nginx From Overwriting Proxied Server Errors

I have a a server running behind an Nginx proxy. Sometimes this server returns 500 errors along with some useful information about those errors. Nginx seems to be swallowing the errors and returning ...
3
votes
1answer
30 views

How can I block requests with the wrong Host header set?

I use nginx to serve my website. I’d like to block all requests that come in with an HTTP “Host” header that doesn’t match my site’s domain. To be more concrete, my nginx.conf contains these two ...
0
votes
2answers
42 views

Nginx rewrite: replace - with /

I set up ghost blogging platform. It doesn't allow to insert «/» signs in article links, but I want them to appear in my links, so I want them to be fixed with nginx rewrites. The link in a browser ...
1
vote
0answers
19 views

Configure nginx proxypass with node.js

What I'm trying to do is running a node.js app with nginx using the ProxyPass feature; my node.js app is execute at localhost:8888, and the this is my nginx configuration file server { listen ...
1
vote
2answers
33 views

Simple Nginx proxy_pass (driving me crazy)

Nagios is served by an nginx virtual server named "nagios" with the following configuration: # nagios server server { server_name nagios; root ...
1
vote
2answers
45 views

Chroot user VSFTPD, can't enter Folder

I'm trying to enter a NGINX folder, via Filezilla with my local user. The OS of my server is CentOS 7. I installed vsftpd on it this way: #Install VSFTP sudo yum -y install vsftpd #Make Log file ...
-1
votes
1answer
39 views

php-fpm using 100% CPU and nginx gives 404

I am playing around with Magento CE on Nginx and its working fine. Problem starts when I do a 500 user load test. The php-fpm process hogs up all the CPUs to 100% and I start getting 404 as the ...
0
votes
1answer
14 views

SSL on JBoss and nginx

I've got an application that runs on JBoss server. Also I've got nginx as reverse proxy server for this application. Now I want to configure ssl. Do I have to configure it on both servers? JKS for ...
0
votes
1answer
29 views

PHP-FPM TCP connections not terminating in time

I'm serving Wordpress pages via nginx/PHP5-FPM using APC caching (through the W3 Total Cache plugin). Nginx communicates with PHP-FPM via TCP sockets on port 9000. I've adjusted the number of max ...
1
vote
2answers
59 views

nginx suddenly redirecting everything to 403 page, can this be debugged or traced?

I'm not sure what happened to my nginx install. Suddenly all page requests are being redirected to the 403 page. Yesterday I tried to add a user agent to block, restarted service from that point ...
1
vote
0answers
19 views

How to route PHP files to 2 different backends with nginx

I have a server running Nginx that is currently proxying all PHP script to Apache with the following location directive: location ~ \.php$ { proxy_pass http://@apache; } I'd like to introduce a ...
0
votes
0answers
10 views

Unable to process more than constant number of parallel connection in curl

I use curl_multi_init function to perform about 1 000 parallel connection to the same server (by API). I accomplish it using PHP, Nginx and Squid. Unfortunately, after some number of connection I am ...
1
vote
1answer
28 views

Aliases in nginx/apache vs CNAME record?

In one of my nginx sites-available configuration file, I can specify a server name alias, like so: server_name example.com www.example.com; If I had an Apache server, I can do something similar ...
0
votes
1answer
22 views

Nginx Cache with PHP-FPM

I have the folowing niginx config file: server { listen 80; server_name pajilleros.com www.pajilleros.com; access_log off; location / { root ...
0
votes
0answers
11 views

nginx not handling proxy_redirect when forwarding through another proxy

This is my configuration: location /nexus { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote-addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header ...
0
votes
0answers
15 views

Async synchronization filesystem strategies

I have the following scenario: Several front-end web servers (nginx + load balancer) serving a web app, each one having a local filesystem, to where user uploads are placed temporarily. An external ...
0
votes
0answers
24 views

Nginx routing vs Laravel App Routing [closed]

Is Nginx based routing for sites faster than App based routing that's used in PHP frameworks like Laravel? We are currently testing out Laravel and we see a steep decrease in performance comparing app ...
0
votes
0answers
21 views

How do I configure Nginx/Apache for a single web application split between Rails and PHP?

Questions like this have been asked before, but I have yet to find one meeting my specific needs. We currently have hosting with Media Temple running CentOS 6.6. We have what's currently a PHP ...
0
votes
1answer
12 views

Nginx Rewite - Matching End Urls not working

Trying to redirect urls like these: http://example.com/vehicles/cars/author/xyz http://example.com/plane/author/xyz to these: http://example.com/profile/xyz I tried this Nginx Rewrite, but its ...
-2
votes
1answer
26 views

nginx is wrongly serving all subdomains [closed]

My nginx server is serving content to all subdomains, even though I've removed the default_server from the main server block. So there is absolutely no reference whatsoever to "default_server" or ...
0
votes
1answer
27 views

set server_name in Nginx based on global variable

I have a server with nginx that runs a site in production that should be replaced with a new site in the near future. In order to be ready to that day - I'm preparing all the configurations that are ...
0
votes
1answer
17 views

Nginx: redirecting a directory to a virtual server

I have two Nginx virtual servers: server { listen 80 default_server; server_name antergos1; root /data/ } server { server_name nagios; root ...
1
vote
1answer
22 views

php-fpm log filling with configuration test successful

I have nginx and php-fpm running and I just noticed my /var/log/php5-fpm.log is filling with this message once a second or so: NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful ...
0
votes
0answers
33 views

Accidentally set expires max in http block

Yesterday, I accidentally set max expires option in http block. What should I do to clear client cache ? I'm using nginx as a reverse proxy for my rails server (unicorn), rails has a asset digest at ...