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
19 views

Nginx fails to restart

I'm just setting up my first Nginx server coming from apache. Right now I'm trying to install a ssl vhost. I have a fresh ubuntu 14.04 server installation with php 5.6.9, mysql and nginx. Appearently ...
2
votes
1answer
28 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.
0
votes
0answers
10 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: ...
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 ...
-3
votes
0answers
12 views

How to redirect one exact url to another url in NGINX

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 ...
0
votes
0answers
8 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 ...
-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 ...
1
vote
1answer
20 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
1answer
16 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 ...
-2
votes
1answer
34 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
2answers
27 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 ~ ...
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 ...
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
13 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 ...
0
votes
1answer
28 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 ...
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
11 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
27 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 ...
1
vote
0answers
34 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; ...
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
33 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
0answers
21 views

PHP in NGINX directory alias not working

I have a fresh install of Ubuntu 14.04 server. I have installed nginx, php, etc.... server { listen 80; listen [::]:80; server_name testone.local; root /var/www/htmlone; index ...
0
votes
1answer
35 views

How to share a Single Domain SSL certificate across 2 ip addresses

I have a wordpress website example.com. I have a single domain SSL certificate that can be used across multiple servers. When a user visits example.com, or any subfolder expect forum , they access ...
1
vote
1answer
18 views

WordPress in SubDirectory with Nginx

No matter what I seem to do, my WordPress site works great, including all permalinks, but I can not access the wp-admin area. Whenever I try to do so, I get a 404 error. I have WordPress installed ...
2
votes
0answers
43 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 ...
-3
votes
0answers
31 views

Multiple web apps without domain names on Nginx server [on hold]

I want to create on my nginx server multiple web applications with laravel, but none of them will need a domain name. I want to create a config file to seperate my apps like: http://...ip.../app1 ...
-8
votes
0answers
27 views

HTTP resources on https page - Nginx [on hold]

I configured https scheme for my domin.com but all css/js coming through some other sub domains subdomain.domain.com on http schems. My page does not render and css/js from http protocol on https ...
-5
votes
2answers
52 views

How to configure nginx to send traffic to internal ip based on hostname? [on hold]

I'm planning on setting up a VPS "service" just for a couple of my friends to use, but I only have one IP. I'd like to set up nginx so it works like this: domain1 . com -> 192.168.1.1 domain2 . com ...
-2
votes
0answers
17 views

How to Purge Whole Domain Cache Via Curl Command? [on hold]

I am using Varnish Cache on Nginx. I want to create a php file that can purge whole domain's cache if I run it. How can I achieve that ? Thank you.
-1
votes
0answers
21 views

change root nginx if else condition [on hold]

server { listen 80; server_name test.test.com; if ($allow = no) { return 200 "The request was $uri"; } location / { root /root/serve/angel/; index index.html; } } ...
-3
votes
0answers
22 views

What situations cause nginx to mark something as 502 bad gateway [closed]

I have an issue where something is causing my nginx server to response with bad gateway. There are some errors, but not for every request, only certain ones. How many bad requests or what other ...
-1
votes
0answers
23 views

Nginx www server and Tornado Websocket server [closed]

I've got Nginx www server and Tornado Websocket server on my Raspberry Pi. The problem is that, data from Tornado server are visible on my site only from local network. Nginx configuration: server{ ...
0
votes
2answers
43 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
2answers
49 views

Nginx configuration for caching static files

I have some problem on configuring Nginx to correctly serve an AngularJS application. The server is configured as follow: www.example.com we have the landing page of the application ...
0
votes
0answers
13 views

Using Nginx + Apache with Ghost

Is it advisable to use NGINX as a reverse proxy for apache to run a ghost blog? Would there by any performance hit in doing so? Is it even possible to do so with ghost? If not what would be the best ...
0
votes
0answers
26 views

Nginx as s3 proxy with private buckets

I'm trying to set up Nginx as a proxy for a static html/js webapp hosted on S3. I read a lots of tutorials and posts and I could make it work if my bucket is set as public. The reason I need Nginx as ...
2
votes
0answers
39 views

Nginx, wrong site served

I have my site on the IP 1.2.3.4 On my domain provider I have both onesite.com and anothersite.com pointing to 1.2.3.4 With Nginx, I have two sites configured: server { listen 1.2.3.4:80; ...
-1
votes
0answers
25 views

How to rewrite this url in Nginx? [closed]

i would like to know how we can rewrite all outgoing url wich look like this ...
-3
votes
0answers
177 views

How to fix LogJam vulnerability in Nginx [closed]

Could you please post a detailed anser on how to fix LogJam vulnerability in Nginx? A checker can be found here: https://weakdh.org/sysadmin.html Thank you.
-1
votes
1answer
30 views

nginx: [emerg] “location” directive is not allowed here

My web panel's pages require a .htaccess file and since I'm now using Nginx, I have to convert the .htaccess rewrite to work for Nginx. I used an online converter http://winginx.com/en/htaccess and it ...
0
votes
1answer
33 views

Nginx rewrite, removing image dimensions from filename

For instance, if a request is made to an image like so... /static/images/00f37ac6291bb6e8_150.jpeg But the 150px thumbnail version hasn't been generated yet and returns a 404, I would like to have ...
0
votes
1answer
27 views

NGINX: getting subdirectories to work

I recently changed to NGINX 1.7.12 from Apache 2.4 and I am coming to love its speed and versatility. Unfortunately, I still haven’t been able to get the SERVER block working correctly. I am using ...
1
vote
0answers
44 views

Scaling AngularJS + NodeJS app on Linode

I have developed an application using AngularJS + NodeJS (together with MariaDB, Redis and Socket.io for realtime notifications) and I have deployed it on a single Linode node. Now I would like to ...
0
votes
1answer
48 views

How to check if request body is empty?

I tried to do it like that if ($request_uri ~ ^/page/submit$ ) { set $test A; } if ($request_body = '') { set $test B; } if ($test = AB) ...
-1
votes
1answer
23 views

NGINX + memcached, location not found

I want to configure nginx to read directly from memcached by key "match_1" for example. This is my server configuration server { listen 8080; server_name localhost; location /get_match ...
0
votes
2answers
37 views

Docker - scaling nginx and php-fpm seperately

I've been playing around with docker and docker-compose and have a question. Currently my docker-compose.yml looks like this: app: image: myname/php-app volumes: - /var/www ...