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
1answer
20 views

NGINX Unicorn 504 Gateway Time-out

I try all what I found in the Google by this question, but - nothing. It doesn't work anyway. My NGINX default: upstream app { server unix:/tmp/unicorn.rails.sock fail_timeout=0; } server { ...
0
votes
0answers
15 views

Nginx Server break images on web browser after refreshed 3 to 4 times

Hi I am in very confusing state now. I have configured Nginx 1.6 on Centos 6 for serving only Code (js, css, html) pages all other images coming and calls happened through load balancer. My problem ...
0
votes
1answer
16 views

nginx proxy pass / rewrite with multiple locations to passenger app and php-fpm

On a server for a small team of people (up to 30) I installed several services which have to be accessible from the browser. I want to use nginx because I consider it being more lightweight. ...
0
votes
1answer
12 views

How to add fastcgi support to nginx?

I'm trying to setup roundcube in my server with nginx on CentOS. this tutorial says: Add the following to the bottom of /etc/nginx/fastcgi_params: # Roundcube config fastcgi_keep_conn on; ...
1
vote
0answers
17 views

How to get Nginx to quickly switch to backup upstream server?

I've using Nginx to load-balance a websocket app that runs in multiple Node.js instances. When there are thousands of active connections, a single message broadcast could make Node spin in place for ...
0
votes
1answer
15 views

nginx: default_server directive not respected

I have multiple files each with a config for a different vhost. On one of these config files (included in the main nginx config file) I set the default_server directive: server { listen ...
0
votes
0answers
14 views

Changing status code from proxied backend server with nginx

I am proxying some paths to another server. That server responds with 302 Moved Temporarily. I need to change that particular status code to 200 OK. Otherwise I can pass response through as-is and ...
0
votes
1answer
16 views

How to rewrite this url in NGINX

I have multiple urls in this manner. http://domain.com/something/static/variable/ But now I want to redirect the url above to http://domain.com/anything/static/variable/ I tried location ...
0
votes
0answers
19 views

Can't get Nginx to serve correct certificate chain

I'm trying to set up Nginx (1.4.6-1ubuntu3.1) with a StartSSL certificate. I've been following the documentation to get it working, but Nginx only serves the server certificate, not the intermediate. ...
1
vote
1answer
39 views

In nginx error log: “SSL_BYTES_TO_CIPHER_LIST:inappropriate fallback”

We recently changed our nginx config to support TLSv1.2 as well as a number of more secure ciphers. Since the change, our nginx error logs have been filled with the following errors: 2015/01/28 ...
1
vote
1answer
30 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 ...
2
votes
1answer
13 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
2answers
55 views

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

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
30 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
41 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
22 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
18 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
26 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
13 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
48 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
60 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
38 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
24 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
61 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
19 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
29 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
25 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
20 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
33 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
44 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
22 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
35 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
48 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
45 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
12 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
24 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
13 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 ...