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
1answer
2k views

install nginx on suse linux enterprise 11

I need some help getting ngnix installed on Suse Linux Enterprise 11. This is my first time trying to do this so I am likely missing something basic. Thus far I have: wget ...
3
votes
1answer
51 views

Protect Piwik on Nginx with basic authentication, but allow access piwik.js

I got nginx running on my server and recently installed Piwik with this config: server { listen 443 ssl spdy; server_name analytics.example.org; root /srv/www/analytics.example.org; index ...
0
votes
0answers
4 views

WordPress Nginx Browser Cache Expires on Extentionless URLs

Struggling a bit with the following. Adding expires for JS and CSS, plus other static files is easy: # Directives to send expires headers. location ~* \.(?:css|js)$ { expires 28d; ...
0
votes
0answers
15 views

nginx dynamic tcp proxy configuration

We need to dynamically configure nginx TCP proxy. For example, Setup tcp proxy on some random port, i.e. a1.mydomain.com:12345 -> somehost:someport Later on: Turn off tcp proxy ...
0
votes
0answers
19 views

Nginx - reverse proxy pass packets to localhost

Say for example I have nginx proxy setup like such: server { listen 443 ssl; server_name foo.com; #SSL and logging settings omitted location /datapath1 { ...
0
votes
1answer
498 views

Can I delete files in nginx client_body_temp directory?

On my nginx server, I can't login to my wordpress site. The error log mentions " No space left on device". 2014/09/26 02:02:05 [crit] 1197#0: *32 open() ...
1
vote
0answers
7 views

No Module Named OS - NGINX/UWSGI/NGINX

Have looked at many related posts and most point to an outdated version of python that is cause the 'no module named os' during the uwsgi boot. I've run print sys.version_info And it shows python ...
1
vote
1answer
1k views

Nginx SSL redirect for one specific page only

I read and followed this question in order to configure nginx to force SSL for one page (admin.php for XenForo), and it is working well for a few of the site administrators but is not for myself. I ...
0
votes
0answers
7 views

Passenger+Nginx instances fail to keep rails' uniqueness true

I have multiple Nginx+Passenger instances conf here and many models (more than 40) that has validations on uniqueness. e.g. class Ssid < ActiveRecord::Base validates :name, :presence => true ...
0
votes
0answers
4 views

Can't seem to get fastcgi_cache_use_stale to work

So I have two browsers open and am requesting a page: http://localhost/test.php Once every 10 seconds the cache expires and when I refresh the page it takes 5 seconds to load the script, store in ...
1
vote
2answers
375 views

tomcat7 + nginx ssl causes redirect loop

We have the following set-up: several subdomains lead to the same server, which is running nginx as a proxy to each of them. All subdomains are currently used for testing features in development, so ...
0
votes
2answers
49 views

Auto scale RTMP live streams (NGINX-RTMP)

I am using Nginx-rtmp-module for live streaming. It works perfectly for 40-50 cameras on a single machine (AWS EC2 C3-large). But if i have more than 100 streams, how can I scale my servers to meet ...
0
votes
0answers
17 views

“unknown directive” when installing Phusion Passenger on Debian 8 with nginx

I try to install Phusion Passenger on a Debian 8 (amd64) which already has an installed nginx (the Debian default nginx package). I use the official install how-to: ...
4
votes
2answers
941 views

Deploying Django App with Nginx, Apache, mod_wsgi

I have a django app which can run locally using the standard development environment. I want to now move this to EC2 for production. The django documentation suggests running with apache and ...
1
vote
3answers
2k views

Rails + Nginx + Unicorn multiple apps

I get the server where is currently installed two apps and i need to add another one, here is my configs. nginx.conf user www-data www-data; worker_processes 4; pid /var/run/nginx.pid; events { ...
2
votes
1answer
36 views

When shoud I use ssl_session_cache paramter in nginx ssl settings

What do I benefit from ssl_session_cache set in nginx.conf when I using https? See here.
2
votes
1answer
245 views

nginx SSL with bare domain and wildcard

This is turning out to be an annoying problem that I'm hoping someone can help me with. To start, I run my own CA, so I'm doing self-signed certs; I can do anything I need with them using openssl. I ...
5
votes
2answers
2k views

nginx proxy + ssl +clr “400 bad request” error

Here's the situation - there's a trasnparent nginx proxy that handles SSL certificates and does it well until we decide to add a revocation list management, required for security reasons. This is when ...
1
vote
2answers
1k views

Django fails to find static files served by nginx

I know this is a really noobish question but I can't find any solution despite finding the problem trivial. I have a django application deployed with gunicorn. The static files are served by the ...
0
votes
1answer
18 views

VirtualHost's behind an nginx reverse proxy fail to resolve properly

I have a load balancer pair in front of 4 web servers which run nginx on port 80 and proxy to apache on port 8081 for non-static content like php code. I'm running several domains in this ...
1
vote
1answer
556 views

nginx - deny all *.php requests except index.php for security reasons

os: CentOS 7 nginx: 1.6.2 httpd: apache 2.4.6 cms: Drupal 7 After my server was compromised I removed all from server, reinstalled OS and soft, and restored data from backup. Now I configure all ...
1
vote
1answer
21 views

PEAR Mail error seems to crash the server (php-fpm) : 504 Bad gateway

I've been running on this issue for a few days. I haven't made configuration changes, apart from the usual system/security updates. Server runs on Debian Wheezy PHP 5.4.41-1~dotdeb+7.1 Nginx ...
0
votes
3answers
1k views

Nginx proxy pass and url rewriting

How to trig this rule only when I have parameters in url, otherwise I will match on an alias. location ~^/static/photos/.* { rewrite ^/static/photos/(.*)$ /DynamicPhotoQualitySwitch/photos/$1 ...
-3
votes
0answers
13 views

How to redirect one exact url to another url in NGINX [on hold]

I had scan everywhere in this website on NGINX rewrite rule but all of them handling url with wildcards. How about only one particular url case? For example, redirect: http://example.com/ to ...
1
vote
1answer
2k views

redmine gives 404 error after installation

I am using Debian squeeze with nginx and mysql. After raking db and loading default data to redmine. When i try to visit redmine in a browser, http://ipaddress:8080/redmine, I get a 404 error Page ...
0
votes
0answers
9 views

NGINX + uWSGI + Flask. Some requests very slow

We're running a fairly large Flask application and finding that at random times we'll end up with a very slow request (sometimes a minute or more) I presume the issue is related to lazy-loading ...
5
votes
1answer
2k views

Varnish “FetchError no backend connection” error

Varnishlog: 0 CLI - Rd ping 0 CLI - Wr 200 19 PONG 1340829925 1.0 12 SessionOpen c 79.124.74.11 3063 :80 12 SessionClose c EOF 12 StatSess c 79.124.74.11 3063 ...
-2
votes
0answers
10 views

nginx limit requests by url parameter

I have proxy server running nginx and its proxying requests to a few backends. Usual URL format is something like this: /search?login=test&token=12345&keywords=travel At every second there ...
0
votes
1answer
31 views

nginx proxying requests to wrong backend

Why would going to https://robert.bob.com/norbert/ go to backend1 instead of backend2 with this configuration? server { server_name robert.bob.com; rewrite ^/(.*) https://robert.bob.com/$1 ...
0
votes
1answer
17 views

Nginx not displaying CSS, PNG & SVG

I have been looking through the hundreds of questions about this for a couple of hours now, but I haven't been able to find a single one that's the exact same as mine. Up until a week ago, all sites ...
0
votes
2answers
28 views

Log rotation on NginX in Configuration file

I've tried this tutorial to rotate log file without external software, but it seems it doesn't work, my configuration on the server { block: if ($time_iso8601 ~ ...
-2
votes
1answer
35 views

NGINX Load balancing or stronger hardware? Please explain

I have a web application and expect it to be getting many concurrent users. I have seen engineers use load balancing to achieve optimal efficiency but I still don't see how buying more servers is ...
0
votes
0answers
14 views

Logstash not saving anything for Nginx

I have a rather simple setup for Logstash as follows: /opt/logstash/patterns/nginx: NGUSERNAME [a-zA-Z\.\@\-\+_%]+ NGUSER %{NGUSERNAME} NGINXACCESS %{IPORHOST:http_host} %{IPORHOST:clientip} ...
0
votes
1answer
23 views

Logrotate - how change it so that it never deletes logs and will create a .gz every 6 months?

I read the man logrotate, but it's still unclear to me. My questions are mainly related to the NGINX webserver logs. This is my current logrotate.conf: # rotate log files weekly weekly # keep 4 ...
0
votes
0answers
22 views

CORS in Nginx 1.2.1 (Debian 7)

I am using Debian 7 and Nginx 1.2.1. Http headers module is enabled by default with Debian packets (https://wiki.debian.org/Nginx). I am trying to add links to facebook, twitter and google plus ...
0
votes
5answers
2k views

nginx: php-fastcgi running but php files not executing

I have recently set up a nginx server with PHP running as FastCGI process. The server is running with HTML files however PHP files are downloading instead of displaying and PHP code is not processed. ...
1
vote
0answers
29 views

nginx - redirect https://subdomain.example.com to https://example.com

I want to redirect https://subdomain.example.com to https://example.com. Here's what I'm trying: server { listen 443 ssl; server_name subdomain.example.com; return 301 ...
0
votes
0answers
14 views

Rails app with nginx passenger: recv() failed (104: Connection reset by peer) while sending to client

I've searched both StackOverflow and ServerFault, but almost every Q/A is about "while reading response..." for the 104: Connection reset by peer, and not "while sending to client". This is what my ...
1
vote
0answers
36 views

Correct nginx set up to handle subdomains

I have an nginx instance with the following config: server { listen 80; server_name mySite.com; location / { root /usr/share/nginx/html; index index.html index.htm; ...
1
vote
0answers
11 views

Django + gunicorn + nginx concurrent users on default configurations [on hold]

I am currently setting up nginx+gunicorn to serve a django app that is going to be used by at most 60 users following THIS tutorial. The app is pretty basic, 6 django forms made out of 10 fields and ...
0
votes
0answers
12 views

CloudFlare + Nginx + ngx_http_realip_module

We are currently using ngx_http_realip_module to convert CF ip's back to the users'. It works well for the most part but some ips in our access.log are still from CF. Current config in http {}: ...
0
votes
0answers
11 views

Nginx with proxy_protocol is not accpting requests from haproxy in TCP mode with send-proxy

I have haproxy and nginx. I want make this setup accept HTTPS connections and I want HTTPS request being decrypted on nignx, not haproxy. In haproxy I've created frontend and backend for HTTPS ...
1
vote
0answers
32 views

Gitlab Omnibus, can't view most commits (500) and very slow

I'm running GitLab 7.9.2 c46d4f5 (Omnibus) on Ubuntu 14.04 On a little over half of our commits when someone navigates to a commit gitlab returns 500 We're sorry, but something went wrong Also, on ...
0
votes
1answer
34 views

Arguments not transfered when nginx rewrite the url to https

I have nginx frontend and tomcat backend. Now I need to encryt the specific url end with .do from client to nginx server using ssl. And js/css could be requsted with http. In order to avoid mixed ...
0
votes
1answer
31 views

What should be the right logs permissions for NGINX on CentOS?

on /var/log/nginx/ I have access and error logs. Some are .log errors and others have .gz I think I messed up with the permissions. Some files are created by root/root, other files are created using ...
0
votes
0answers
29 views

Getting a 502 Bad gateway error with nginx on ubuntu

I am recieving a 502 Bad gateway error with this config file for my ubuntu nginx server, can anyone see any faults with this? Quite new to Linux so any advise would be helpful. I am trying to get up ...
0
votes
1answer
1k views

Nginx subdomain proxypass

I want to redirect non-ssl traffic to ssl for all subdomains. I want to keep the subdomain the same. I want to specify a different proxy_pass for staging.foo.com. I only have 3 things going right now ...
0
votes
1answer
1k views

How do you get multiple ports working with nginx proxy_pass and Node Express?

I have multiple node instances running each on a different port. (8000, 8001, etc.) I also have nginx running on port 80. What I am trying to do is allow a user to enter my site via a single domain ...
0
votes
1answer
1k views

Rails 3 passenger nginx application spawner server error on Synology NAS

Question updated, please read UPD2. I'm trying to deploy app through passenger nginx module on DS710+ (ruby 1.9.2p0 installed). There is syntax error relative to ...
2
votes
0answers
44 views

How to find size of atomic write for nginx access log buffer?

This link says: The buffer size must not exceed the size of an atomic write to a disk file. For FreeBSD this size is unlimited. How can I find size of atomic write on my server? Is there any ...