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

0
votes
0answers
15 views

dynamic port routing based on request path

The problem: I currently have a nodejs http server which is used to serve long-running jobs. The way the client typically interacts with it is the following: Send a request to '/start/:guid', to ...
0
votes
0answers
5 views

OSX Yosemite can't bind brew nginx to port 80 [migrated]

Installed nginx and php-fpm via Homebrew. I've disabled native Apache 2.4 that comes with OSX by running: glfx:~ glfx$ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist ...
0
votes
1answer
8 views

Is it possible to make nginx cache expires at certain time?

So basically what I want to do is make nginx's cache expires at 24:00 everyday. I know I could use tools like nginx-cache-purge or just manually delete cache files on disk, but I prefer to letting ...
2
votes
0answers
18 views

“echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message

One of my server (Ubuntu 12.04, 16CPU, 32GB RAM) runs the app section of my website (Nginx 1.1.19, PHP5-FPM, Php 5.3.10, Symfony2 Web Framework) Suddenly, users started getting HTTP 5** Errors. When ...
0
votes
0answers
14 views

Nginx, pass environment variables through to FPM automatically?

Is there any way when running nginx from command line to have all environment variables defined at execution automatically propagate to FPM? Ideally without having to hard-code them in any config ...
-3
votes
1answer
21 views

nginx is displaying index on 404s

Nginx displaying index.php for every non found page. I can access every page that exists such as domain.com/index.php index1.php index2.php But trying to access non existing pages blabla.php or ...
0
votes
0answers
22 views

nginx: Mapping location with try_files

I'd like to map domain.com/mail to serve content in (absolute path in my server) /var/www/default/mail server { ### MAIN ### server_name .domain.tld; index ...
-2
votes
0answers
25 views

Nginx + Pagespeed + varnish 3 or 4? [on hold]

I can't find any information regarding what to use? Is varnish 4 much better than 3? I can see on Google Pagespeed that it supports both 3 and 4. I have a Ubuntu 14.04 LTS, 4 core, 4 GB RAM.
0
votes
2answers
31 views

Rewrite in Nginx Does not work for POST request

I have two VPS(one is for fail over), both running Nginx as a Load balancer for backend servers. Also, I have Enabled and configured SSL for my domain(registered on GoDaddy.com) on Nginx. Since I am ...
-1
votes
0answers
19 views

Control files fetched from upstream when using nginx proxy cache

we have a file sharing site in a local network and we trying to save links bandwidth usage to the max by caching static files in local nodes powered by nginx with caching enabled. Everything works ...
0
votes
2answers
27 views

How would using caching nginx template affect adsense?

I'm considering using the nginx template below for WP sites with adsense on them. Would that cache the adsense ads too and make the clicks invalid? server { listen %ip%:%proxy_port%; server_name ...
0
votes
0answers
21 views

Nginx: Redirect subdomain to path

This is very similar to the question at http://stackoverflow.com/questions/14491944/nginx-convert-subdomain-to-path-component-without-redirect, however I need it to be a permanent redirect (not ...
2
votes
0answers
45 views

Intermittent Connection Issues on High Traffic Servers

Some brief background: We've been getting reports of very intermittent connection issues from our users. Several times per day, users will have to reload the page they're on due to a connection ...
1
vote
1answer
15 views

Nginx - opens the 1st project when a non existing server name is typed

I have an nginx server running that has multiple projects inside the sites-enabled. The problem comes when trying to access and nonexistent project url, nginx will render the 1st available. Example, ...
3
votes
1answer
46 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 { ...
1
vote
0answers
34 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
33 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
15 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
25 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
17 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
18 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
23 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
1answer
33 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
60 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
33 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
14 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
68 views

Redirect traffic based on url to different ip address maintaining port and url information [duplicate]

We have a QA version, a UAT version, and a DEV version of webapp. Users need to access these via http://uat.company.com:41002/webapp, http://qa.company.com:41002/webapp, and ...
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 ...
3
votes
1answer
32 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
43 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 ...
1
vote
0answers
23 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 ...
-2
votes
0answers
20 views

Nginx webserver stop working after 5 minutes [closed]

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
31 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
15 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
52 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
1answer
80 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
29 views

nginx mp4 hotlink protection in folder [closed]

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
39 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
26 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
65 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
30 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
27 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
23 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 ...