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

Docker PHP-FPM & NGINX

I'm having an issue with my containers communicating to each other. The linking of the containers is working but the php-fpm process isn't working. php container = 172.17.2.106 nginx container = ...
0
votes
1answer
33 views

Nginx Not Passing Rewrites To PHP-FPM

I have the following rewrite rules for nginx. The rules seem to not function correctly, for example the rule for games is supposed to rewrite http://thegamesdb.net/game/2/ to ...
0
votes
2answers
41 views

Redirect loop when forcing SSL with Nginx

I know this question has been asked and answered a million times, but none of the accepted answers are working for me. My site is unreachable due to some sort of infinite redirect loop when I force ...
0
votes
0answers
26 views

Kopf can not access elasticsearch

I have a setup with ElasticSearch, Logstash and Kibana working. With Kibana, I can access the data of the ElasticSearch from a remote host. I installed the latest kopf plugin with : ...
0
votes
1answer
21 views

Trouble getting Unicorn to talk to Nginx

I've seen all of the other questions on here but none of them seem to work for me. Whenever I try and access my site I'm getting a connection refused error through the nginx logs. I'm assuming there ...
0
votes
2answers
49 views

Nginx : rewrite request for 'p.test-prd.com.local' to 'www.test.com'

For various reasons, we follow an internal DNS scheme where the internal test site for 'www.test.com' would be 'p.test-tst.com.local'. I won't go into the details why we ended up with the scheme we're ...
0
votes
0answers
47 views

call to .woff file that does not exist leads to 404

I am pulling my hair trying to find out why is this file being called on my wordpress code : http://www.example.com/wp-content/themes/room09/google-fonts/sk05J8GA1NvUxDnk43EgAQ.woff I am using ...
0
votes
1answer
46 views

Is it possible that Nginx blocks itself from requesting another URL on the same instance?

I have a setup that worked in Apache and now it is failing in Nginx with php-fpm: I have one PHP-script that is offering a service, you call the URL and get some data I have a second PHP-script that ...
0
votes
1answer
47 views

Is there a way to restart automatically the HHVM service if I get a '502 Bad Gateway Error'?

I've reported the error on stackoverflow - from time to time my Nginx/PageSpeed+HHVM+MariaDB+WordPress blog stops working. There is some problem with the HHVM service that I don't locate, and I'm ...
0
votes
1answer
440 views

Configure Nginx, Kibana, Elasticsearch

My setup Nginx + Kibana - same box different domain, sub-domain (nginx - example.com, kibana - kibana.example.com) Elasticsearch - 192.168.100.31 I have used the config defined below. Replaced ...
0
votes
0answers
257 views

OpenSSL: unable to get local issuer certificate

I'm trying to enable OCSP Stapling is Nginx. However when I test my SSL certificate, I'm running in to some issues. Any ideas how to fix the 'OCSP response: no response sent' and 'verify ...
0
votes
0answers
28 views

Serving static files with NGINX on Unicorn served app

I've just set up a Sinatra app running on Unicorn and served through a socket by NGINX. I'm trying to get NGINX to serve my static assets with this in my nginx config: * EDIT * (added full server ...
0
votes
2answers
136 views

Https url appended with port 80 using CloudFlare, Nginx, and Thin

I have a Nginx setup for my Thin server running a Ruby on Rails project. Nginx is currently the endpoint for my SSL. I recently had some issues with attacks on my webserver, so I decided to add ...
-2
votes
0answers
23 views

compile Nginx enabling Geo IP using nginx

trying to Compile Nginx enabling Geo IP but i couldn't server@rp-v3-mns:/$ ./configure --with-http_geoip_module -bash: ./configure: No such file or directory
2
votes
1answer
33 views

nginx choosing wrong default site [duplicate]

Firstly, I know i can specify default_server to force a default site, but I want to understand why nginx isn't simply picking the first defined server as documented. At the end of the http section in ...
2
votes
1answer
60 views

Nginx redirect from old domain to new with ssl

I am trying to change the domain name for my site from https://www.myolddomain.se/ to https://www.mynewdomain.se/ The problem is that for my old domain I forced SSL on all pages and therefore all ...
1
vote
3answers
72 views

Increasing nginx performance past 1k req/s

I am trying to scale an nginx installation to the best of it's ability. I am running one nginx instance with 6 worker_processes (6 cores) and 5 backend servers consisting af a uwsgi setup with 10 ...
0
votes
0answers
36 views

Failed to install Nginx from nginx.org, Debian apt preferences messed up?

I'm trying to install Nginx from the latest release on nginx.org However, the latest package is not picked up: $ apt-get install nginx Reading package lists... Done Building dependency tree ...
0
votes
0answers
51 views

Improve speed of WordPress backend on Ubuntu VPS

I have a WordPress site running on my VPS which is quite high-specced (3520MB RAM, 4 Cores). The server runs Nginx and php5-fpm. Although the site is responsive on the front end, the backend tends to ...
0
votes
1answer
24 views

Serving a static page using nginx - getting 404

I'm trying to set up a static page on my website using nginx. The folder has a index.html file along with some static files. The directory structure looks something like this olx --static --fonts ...
0
votes
1answer
50 views

php-fpm package not available, Ubuntu 14.04 LTS

I try to install the package php5-fpm on dist Ubuntu 14.04 LTS, nginx. But I get this message: Reading package lists... Done Building dependency tree Reading state information... Done Package ...
0
votes
0answers
55 views

502 Bad Gateway on high traffic

When my website receives many requests per second (I assume at least 80 requests per second), the server randomly blocks some requests with 502 Bad Gateway nginx-errors. This happens every few ...
1
vote
1answer
41 views

nginx is giving me 403 forbidden on index.html, permissions are correct, config is copied from another server

So, nginx is giving me a 403 Forbidden error page when I try to hit http://mayall.syniq.co.uk which should spit out a tribute page to Rik Mayall, as does http://byrne.syniq.co.uk (shouldn't take you ...
0
votes
1answer
43 views

NGINX Configuration issue

I have a issue with my nginx configuration. The problem is that it always use the proxy conf it never use the beta.node365-p.se conf. I want that if the requested domain is beta.node365-p.se the ...
-1
votes
1answer
33 views

Serve static files from directory depending on http referrer inside of nginx [closed]

My server hosts images, but the content of images have to be different for the same link and have to deepens on http referrer. For example: Website 1 load image website1.jpg from ...
-2
votes
0answers
27 views

nginx subs_filter questions

I want to use nginx as a reverse proxy. But I want to add my google adsense code into the website. So I try to use subs_filter to replace some code in the website. From <li class="ads-ad" ...
0
votes
1answer
55 views

How to make nginx understand dots in cookie values?

I have Nginx configured as a simple sticky LB. One of the key parts of config is matching cookie value to server address. This works fine: map $cookie_sessionServer $http_sticky_backend { default ...
0
votes
1answer
52 views

Rails - Nginx not caching images

I've got a VPS where I'm running my Rails app using Nginx and Unicorn. I was successful to add expires headers to JS and CSS files, however I cannot force Nginx to cache images as well (according to ...
1
vote
1answer
58 views

nginx reverse proxy not passing requests

I have a domain (example.com) and a subdomain (sub.example.com) both hosted on the same server. I want to proxy a request so any file requested on http://sub.example.com/api/ will be requested on ...
1
vote
1answer
53 views

how should I configure selinux when running nginx inside docker

There's a good article in docker's documentation about security with docker : https://docs.docker.com/articles/security/ However, it's not very clear to me how root-priviledged processes in the ...
0
votes
0answers
13 views

nginx read url script endpath as a directory instead of input for script

I not sure i am writing the subject correctly but i want to seek for advice. I'm running bugzilla with my nginx. When I run this in browser www.bugzilla.xx.com/rest/bug, it return 404 error. This ...
-3
votes
1answer
44 views

Nginx can't serve more than 40 concurrent users

I'm testing my Nginx web server (configured with CentminMod) with https://www.blitz.io/ and the server returns timeouts when the connected users are about 40. I can't understand why! It's Nginx, not ...
0
votes
2answers
29 views

blogger to pelican nginx rewrite rule

I just converted my blog from blogger to pelican. On blogger, posts used to be something like: http://blog.example.com/2014/09/title-slug.html, now my blog on pelican is ...
0
votes
1answer
654 views

upstream prematurely closed connection while reading response header from upstream

I am having issues setting up SSL for my Jenkins CI server. I use Jenkins behind nginx for a reverse proxy. I am getting these upstream prematurely closed connection while reading response header from ...
1
vote
2answers
60 views

nginx as load balancer: Can it return to the client which app server the request was sent to?

The normal solution to this is to tweak the app servers themselves to send their identity back in a custom http header. We are in a special situation, in that the app server is a hard coded ...
0
votes
1answer
36 views

How to make Nginx try_files ignore the port the server listens?

I have a server running both OpenVPN and Nginx on port 443: I configured OpenVPN to run on 443 with the port-share option while Nginx runs on 4545. All of this seems to work except the try_files ...
0
votes
0answers
17 views

Nginx - Mediawiki - Limit access to the connexion page to specified ip

I would like to limit the possibility to connect to my Mediawiki web site to a specified list of ip. The url to connect are : /index.php/Spécial:Connexion /index.php?title=Spécial:Connexion ...
0
votes
1answer
63 views

Nginx Reverse Proxy: servername.domain.com reverse to http://ip.add.res.s/location/App

I need a little help sorting out how to configure a reverse proxying load balancer in nginx. Basically, I have two web applications that live under subdirectories on Apache servers, /flavors/Chocolate ...
0
votes
1answer
49 views

Nginx Server Block Config

I'm having a problem with my nginx configuration. I have several virtual hosts on the same server. However, I'm attempting to add another virtual host, this one being an SSL website. The website ...
0
votes
1answer
18 views

nginx setup to hide the backend if corresponding static file does not exist?

My question is similar to Proxy to "backend" service whenever a file does not exists, except that it should work for the root path as well, where I would like index.html to be returned. ...
-1
votes
1answer
23 views

Lightweight webserver with SSPI authentification [closed]

I'm looking for a fast, lightweight web server (for example nginx or lighttpd) which supports authentication to a Microsoft Kerberos authentication server (SSPI). This webserver must run under Windows ...
15
votes
10answers
6k views

Shellshock: How do I know if my server is compromised + suspicious files to look out for

Three questions which I hope someone can help answer: How do I know if my server is already compromised due to the Shellshock bug ? If it was compromised, is there a particular folder where I should ...
0
votes
2answers
59 views

Nginx: Redirect both http and https root to subdirectory

I'm attempting to redirect the root domain for both http and https in nginx to the same subdirectory (https): So e.g. http://example.com -> https://example.com/subdirectory https://example.com ...
0
votes
0answers
16 views

nginx chunked_transfer_encoding enable/disable inside script

It is possible to control the value of chunked_transfer_encoding on/off sending a header or something from a PHP script? Thank you
0
votes
1answer
50 views

File cannot be downloaded completely via PHP from my nginx

I have a file on my tiny server (BeagleBoneBlack) which I want to download to another machine. Therefore I try to do it via PHP from my nginx-web-server. The file size is about 1.2 GB and the download ...
0
votes
0answers
30 views

502 bad gateway error from nginx when I compile gitlab 6.0.0

I compiled gitlab 6.0.0 follow the instruction https://gitlab.com/gitlab-org/gitlab-ce/blob/v6.0.0/doc/install/installation.md There is no instruction about setup mysql database in this manually so ...
-1
votes
1answer
43 views

Why is my nginx load balancer misdirect phpMyAdmin after login?

In my testing server, I have an nginx load balancer pointing to Apache server(s) running on the same machine, and I've installed phpMyadmin under Apache. My nginx config: http { upstream backend ...
0
votes
1answer
109 views

Wrong REMOTE_ADDR and SERVER_ADDR on Apache when using nginx as reverse proxy

I'm on Mac OS X, running Ubuntu in VirtualBox. Mac OS can be accessed in the local network with IP 192.168.0.100 and Ubuntu is 192.168.0.123 (it's using the "Bridged Adapter" option in VirtualBox ...
0
votes
1answer
45 views

nginx wildcard redirect suspicious symbols warnig

I would like to create a 301 redirect on nginx to do this: *.example.gr/en/* => http://www.example.gr/el/ I have tried to do: server{ listen 80; server_name ~^.example.gr/en/*; return ...
0
votes
1answer
27 views

Nginx log entries to multiple files

I'd like to log the same access.log entries to separate files, so when a request comes in it should populate a.log and b.log. Is there any way to do this with nginx?