Questions tagged [nginx]

Nginx ("eNgine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

Nginx is a web server and mail proxy known for its high performance and small resource footprint. It is used in many places as a replacement to Apache and also as a front end server to static content or reverse proxying. Nginx is developed under a BSD-like license by Kazakhstani developer Igor Sysoev.

Nginx comes with diverse modules that enable it to perform various different tasks such as load balancing, URL rewriting, request rate limiting, content compression, raw TCP proxying and integration with tools like memcached or scripting languages like Lua.

Nginx is being used by some of the worlds busiest sites like WordPress, Sourceforge, Github and Reddit. Its market share has been raising from 7% in 2008 to over 30% as of June 2016 according to W3techs statistics.

After nine years of development, Nginx 1.0 stable was released on April 2011.

17017 questions
5
votes
2 answers

HTTP streaming server behind nginx?

I'm trying to set up a HTTP streaming server I wrote with Tornado and python. Basically, it keeps the connection alive and occasionally flushes information out. It's a bit like long polling, except the connection isn't broken by the server. Is it…
Paul
  • 153
  • 1
  • 3
5
votes
1 answer

How do I DRY up this Nginx configuration?

I’m on Nginx 0.8.54 trying to achieve the following as DRYly as possible: Proxy straight to localhost:8060 if cookie no_cache is true or if request method isn’t GET. Otherwise serve static files from $document_root/static/$uri. If no such file…
freya
  • 153
  • 4
5
votes
1 answer

Use Cherokee Instead of nginx in Front of Varnish to Get HTTP 1.1 Optimizations?

We have been running nginx -> uWSGI, and now we are evaluating putting Varnish as a caching layer between nginx and uWSGI (similar to http://www.heroku.com/how/architecture). But, nginx only supports HTTP 1.0 on the back so it will have to create…
espeed
  • 159
  • 5
5
votes
2 answers

Nginx returning blank HTML pages with php-fpm

I'm using php-fpm through Nginx. My nginx.conf can be found here: http://pastebin.com/Nu9iD8Km It includes a file found here: http://pastebin.com/ece4cwXF My php-fpm.conf can be found here (all the options omitted are the default):…
Kudu
  • 247
  • 2
  • 4
  • 8
5
votes
1 answer

Getting correct SERVER_PORT to php-fpm through nginx and varnish

The goal is to get PHP aware of the correct web-facing server_port. The setup is: nginx on port 443 reverse proxying to varnish on port 80 reverse proxying to nginx on port 8008 and running php-fpm as a fastcgi. hitting 80 or 443 both work fine…
MDrollette
  • 325
  • 3
  • 12
5
votes
2 answers

Correct number of uWSGI processes?

On a 4-core box which scenario makes the better setup: 4 uWSGI processes with a deep queue to handle requests 8 uWSGI processes with a deep queue As many many processes as the server's memory allows with the a relatively shallow queue ?
Jason Christa
  • 622
  • 4
  • 11
  • 21
5
votes
4 answers

Running PHPmyAdmin on Nginx, port 8080 passed to varnish not working well!

I installed Nginx, Varnish and PHP-fpm. Then I installed PHPmyAdmin and made a virtual host for it: server{ listen 8080; server_name phpmyadmin.Domain.com; access_log /var/log/phpmyadmin.access_log; error_log…
amrnt
  • 359
  • 1
  • 3
  • 9
5
votes
1 answer

Nginx & Passenger - failed (11: Resource temporarily unavailable) while connecting to upstream

I have an Nginx and Passenger setup that is proving problematic. At relatively low loads the server seems to get backed up and start churning results like this into the error.log: connect() to unix:/passenger_helper_server failed (11: Resource…
Toby Hede
  • 309
  • 5
  • 11
5
votes
1 answer

HTTP response time profiling

I have a nginx reverse proxy. The server is close to serving 600-700 requests per second. I have a Munin HTTP load time plugin which is outputting…
Sparsh Gupta
  • 1,127
  • 7
  • 21
  • 31
5
votes
1 answer

Very Large number of connections in TIME_WAIT state; Server is slow, ipconntrac

I have a nginx server with load balancing and reverse proxy. Right now its behing another nginx but very soon I plan to make it front, where it will receive TCP connections from clients directly at a rate of 500req/second I am having some big…
Sparsh Gupta
  • 1,127
  • 7
  • 21
  • 31
5
votes
2 answers

What's the best server to use with ASP.Net on Mono?

I am reconfiguring my website from scratch and basically I want it to run Mono(well, ASP.Net inside Mono) According to the Mono Project there appears to be two options, Apache or Nginx. Which one would be best for me? I'm running on Arch Linux…
Earlz
  • 1,019
  • 5
  • 13
  • 29
5
votes
2 answers

How to add recently set cookies to nginx's access log

I'd like to include cookie data in an nginx access log like so: (simplified example) log_format foo '$remote_addr "$request" $cookie_bar'; access_log /var/log/nginx/access.log foo; This works great on requests that already have a cookie "bar", but…
etoleb
  • 201
  • 1
  • 2
  • 5
5
votes
4 answers

Alias using Nginx causing phpMyAdmin login endless loop

Recently I've been trying to set up a web server using Nginx (I normally use Apache). However I've ran into a problem trying to set phpMyAdmin up on an alias. The alias correctly takes you too the phpMyAdmin login screen, however when you enter…
Seb Dangerfield
  • 163
  • 1
  • 1
  • 3
5
votes
2 answers

How to setup Proxy Cache with Nginx and Passenger

I use Nginx and Passenger for my rails application. I want to use proxy cache to cache my pages. However, every request go direct to my rails application. I don't know what wrong with my configuration. Below is my configuration: user…
tiny
  • 51
  • 1
  • 5
5
votes
1 answer

nginx referer log

Does nginx has apache's equivalent to a referer log? For apache, you can have something like Customlogs logs/referer_log referer Basically I'd like to know who's referring traffic to my nginx server. Thanks!
Patrick
  • 455
  • 1
  • 7
  • 10
1 2 3
99
100