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

Using a mounted NTFS share with nginx

I have set up a local testing VM with Ubuntu Server 12.04 LTS and the LEMP stack. It's kind of an unconventional setup because instead of having all my PHP scripts on the local machine, I've mounted an NTFS share as the document root because I do my…
Hoff
  • 181
  • 1
  • 8
5
votes
4 answers

Operation not permitted when starting Unicorn

I've created an nginx/unicorn/capistrato setup on Ubuntu (Amazon EC2) by following mostly this guide. I guess everything is set up like it should but when I start Unicorn I get (a LOT of) this error in the log: E, [2012-09-08T08:57:20.658092 #12356]…
fiskeben
  • 171
  • 1
  • 7
5
votes
1 answer

nginx reverse proxy slows down my throughput by half

I'm currently using nginx to proxy back to gunicorn with 8 workers. I'm using an amazon extra large instance with 4 virtual cores. When I connect to gunicorn directly I get about 10K requests/sec. When I serve a static file from nginx I get about 25…
Isaac A Mosquera
  • 71
  • 1
  • 1
  • 5
5
votes
1 answer

NGINX proxy caching - cache buster variable in querystring - possible to ignore?

We have the following url we would like to proxy cache: file.php?parameter=one¶mater2=two&r=EPOCHTIMESTAMP Query string parameter "parameter" varies between requests. So does "paramater2". Query stringing parameter r is a timestamp we use to…
anonymous-one
  • 1,018
  • 7
  • 27
  • 43
5
votes
1 answer

Nginx as reverse proxy: how to properly configure gateway timeout?

We have configured Nginx as a reverse proxy to an Apache server farm, but I'm running into trouble with the gateway timeouts. Our Goal in human readable form is: "Deliver a request within one second, but if it really takes longer, deliver anyway",…
user1281376
5
votes
2 answers

Changing the Nginx Group

In our dev environment, I'm migrating some of our Apache sites to Nginx. What I'd like to do is ensure that my developers who all belong to the same group (webgroup) have full access to the files (e.g. log files) that are created by the web server…
Rob Wilkerson
  • 1,465
  • 4
  • 17
  • 25
5
votes
2 answers

What is the best way to compress backend to nginx reverse proxy data?

We are going to be running a nginx reverse proxy that will pull data from a backend via the internet. What we mean by via the internet is the backend machine will not be on a lan with the front facing reverse proxy. We were thinking it would be nice…
anonymous-one
  • 1,018
  • 7
  • 27
  • 43
5
votes
1 answer

Disable deflate compression in nginx SSL

When I'm browsing to my SSL protected site running nginx with Chrome, I see I'm using TLS 1.0, AES_256_CBC with SHA-1, and DHE_RSA as key exchange. That's all good and in conformance with my cipher suite settings. However, I'm using DEFLATE…
hvtilborg
  • 217
  • 1
  • 2
  • 5
5
votes
2 answers

Nginx proxy timeout while uploading big files

I'm experiencing strange behaviour with Nginx. In my case Nginx acts as proxy to Jetty. Config below: server { listen 80; client_header_timeout 3m; client_body_timeout 3m; send_timeout 3m; client_max_body_size 5M; …
tomekkup
  • 151
  • 1
  • 1
  • 3
5
votes
2 answers

nginx clobbering sftp traffic during peak times - is tc the answer?

This is probably a continuation of my previous (unanswered) question because the underlying cause is probably the same. I have a Linux server with nginx and sshd running on it. It's on a shared 100mbit/s unmetered link. During "peak times"…
njahnke
  • 290
  • 3
  • 16
5
votes
1 answer

nginx ssl certificate issue key values mismatch

I am have been trying to setup an ssl certificate for a few days now, I am buying it from Namecheap.com and I am buying a rapid ssl wildcard certificate I am doing the following: Generate a csr - openssl req -newkey rsa:2048 -nodes -keyout…
5
votes
1 answer

Awstats: awstats_buildstaticpages.pl only builds 1 report, not full reports

I remember running this command before and it used to build all the pages, but now that I use it again it only builds the main page. (new lines for readability) /usr/share/awstats/tools/awstats_buildstaticpages.pl -update -config=mydomain.com…
Danny
  • 125
  • 2
  • 11
5
votes
2 answers

access log off nginx not working?

I have the following drop.conf files located in /etc/nginx/drop.conf # if you don't like seeing all the errors for missing favicon.ico requests # sent by a lot of browsers in root we dont need to log these - they mean extra IO location =…
milosgajdos
  • 1,828
  • 2
  • 21
  • 30
5
votes
2 answers

Does "find" open files?

I recently issued this command: find . -type f | wc -l To count how many files are in my public_html folder. Shortly after, Nginx returned 500 internal server error and error.log was being flooded with "too many open files" error. I thought maybe…
Tar
  • 265
  • 4
  • 11
5
votes
2 answers

nginx serves broken characters (nginx on linux as guest system in vbox)

I have nginx 1.2.0-1 on debian 6.0.5. I have file test.css. I fill it with "abcd1234". Open it in browser. Then I change the content to "mnop". I receive "abcd" in response. I have all the files in folder shared between Windows (host) and Debian…
A123321
  • 153
  • 7