Questions tagged [nginx]

Nginx is a web and proxy server. Note that questions on the use and configuration of server software may be off-topic and subject to closure if they do not directly involve a programming context. Other Stack Exchange sites such as Super User, Server Fault, or Webmasters may be more appropriate places to ask such questions.

Nginx ("engine x") is a lightweight and high-performance HTTP , and , released under a BSD-like license.

From the nginx wiki:

Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Igor Sysoev started development of Nginx in 2002, with the first public release in 2004. Nginx now hosts nearly 12.18% (22.2M) of active sites across all domains. Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.

Resources:

Useful Links

Talks

Tengine

54687 questions
12
votes
3 answers

What is "Reverse Proxy" and "Load Balancing" in Nginx / Web server terms?

These are two phrases I hear about very often, mainly associated with Nginx. Can someone give me a laymans defintion?
robue-a7119895
  • 816
  • 2
  • 11
  • 31
12
votes
2 answers

nginx proxy_pass to a directory

How can I setup nginx to reverse proxy a single folder to one server and the rest of root to a different server? The root "/" is managed by CMS while the "other" is my own programs (independent of the CMS). Here is my current configuration server { …
user3160945
  • 121
  • 1
  • 1
  • 6
12
votes
2 answers

Suppress nginx access denied error log

I have some rules setup in nginx to deny access by IPs. This works great, but for each request from a denied IP, an error that starts with the following gets logged: [error] 7325#0: *5761 access forbidden by rule, client... Is there a way to…
Andrew Frankel
  • 121
  • 1
  • 3
12
votes
2 answers

nginx as webserver incl. socket.io and node.js / ws:// 400 Bad Request

i've got this error requests. The last sentence in german means "Firefox cant connect to the server which is located in ws://.......". The server wouldnt be the problem i think. Because that here is the nginx configuration, because i think there is…
PatrickB
  • 3,225
  • 5
  • 31
  • 55
12
votes
1 answer

nginx location path with proxy_pass

I have following problem, i'm trying to put a Django app with an gunicorn server on my VPS running Nginx. My nginx config looks like this: upstream app_name { server unix:/path/to/socket/file.sock fail_timeout=10; } server { listen 80…
Konrad Wąsowicz
  • 422
  • 2
  • 6
  • 12
12
votes
2 answers

Under tornado v4+ WebSocket connections get refused with 403

I have an older tornado server that handles vanilla WebSocket connections. I proxy these connections, via Nginx, from wss://info.mydomain.com to wss://mydomain.com:8080 in order to get around customer proxies that block non standard ports. After…
aychedee
  • 24,871
  • 8
  • 79
  • 83
12
votes
3 answers

nginx redirects POST requests to GET request

I have Rails 4.1 application with runs on puma web server. I use nginx as a proxy server. Several days ago everything worked very well. I updated my application, and suddenly some POST requests started to redirected to same url but as GET request.…
Zhomart
  • 702
  • 1
  • 7
  • 19
12
votes
4 answers

Django uWSGI NGINX Bad Request 400

after receiving a 400-Error when trying to deploy my blog, which I developed, using the django development-server, I started a new test-project (using startproject and doing nothing else - just a little config here and there) - as minimal as…
doh-nutz
  • 310
  • 1
  • 2
  • 10
12
votes
3 answers

Rails/Passenger/Node.js: ExecJS "Could not find a JavaScript runtime"

I'm trying to use Node.js as the JavaScript runtime for my Rails application. I'm using the Phusion Passenger module with Nginx as my web server on Ubuntu 12.0.4. Every time I visit my Rails application I get an error page that appears to be…
Adam
  • 1,755
  • 20
  • 31
12
votes
3 answers

Nginx is not accepting range of bytes

I am using nginx to serve videos from the file system. I would like to enable range request. Currently this is the result returned for my file curl -I fileurl HTTP/1.1 200 OK Server: nginx Date: Sat, 29 Mar 2014 06:41:41 GMT Content-Type:…
kmitov
  • 1,243
  • 3
  • 11
  • 25
12
votes
2 answers

Running Lua in Nginx config?

So it might just be me that is not super bright or super unlucky when it comes to Google searches, but I can't actually find any way to run Lua in the Nginx config without having to recompile the entire server with LuaJIT. The thing is that we would…
user328570
12
votes
2 answers

Cloud-front backed with Nginx (which proxies to S3) randomly missing already cached items?

I wish to serve images from a S3 bucket with Cloudfront as CDN frontend, for that I tried the following: What I wish to acheive (Attempt 2) -- (Misses cloudfront cache randomly) I have the following setup to serve images: ( Cloudfront --> Nginx…
Yugal Jindle
  • 44,057
  • 43
  • 129
  • 197
12
votes
5 answers

Nginx and uWSGI: Connection refused and 502 Bad Gateway error

Trying to set up Nginx and uWSGI on Ubuntu 13.10. When I try to access the website, all I get is "502 Bad Gateway". Ran apt-get install nginx uwsgi uwsgi-plugin-python3 to install nginx/uwsgi. /etc/nginx/sites-enabled/webpage.com: server { …
user1608728
12
votes
3 answers

Why use Apache over NGINX/Cherokee/Lighttpd?

Apache has been the de facto standard web server for over a decade, but recent years have brought us web servers that consume less RAM and handle many more requests per second using fewer threads and asynchronous i/o. In my opinion, I also find the…
codysoyland
  • 633
  • 1
  • 5
  • 7
12
votes
2 answers

nginx configuration for Laravel 4

I am trying to setup my Laravel 4 project using nginx . Here is my nginx server block for laravel : server { listen 80; root /home/prism/www/laravel/public; index index.php index.html index.htm; server_name…
pyprism
  • 2,928
  • 10
  • 46
  • 85