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

learn more… | top users | synonyms

0
votes
2answers
39 views

Nginx. Config two sites on the same port

I'm trying to add a wikimedia site on my server, which already has another site (which doesn't use PHP) on it. I want to put it on a different folder like www.hostname.com/wiki but it would be ...
10
votes
2answers
1k views

Prefer IPv4 incoming connections over IPv6

We run a social/local service that benefits from geolocating the IP of users. The problem is that with IPv6, geolocation is quite a bit spottier than with IPv4. Is there a way to prefer incoming ...
2
votes
0answers
25 views

NGINX Worker Process, Burst Read Speed to only 1918kb/s

I am running an NGINX/1.8 server on Centos6.6 with multiple worker_processes, however while observing iotop I notice they burst up to 1918kb/s Read speed and rarely if at all pass that limit. I want ...
1
vote
0answers
10 views

Apache/nginx: pinned client certificates and FastCGI

Is it possible to have Apache or nginx accept only pinned client certificates and pass knowledge about the client's certificate to a FastCGI response handler?
0
votes
1answer
44 views

How to set up a simple docker-contained reverse-proxying (nginx) server?

Technically i shouldn't be asking this question as i was already able to successfully accomplish it, however i did not record any of my notes/findings on it and i was forced to delete the centos VM it ...
-1
votes
0answers
29 views

How to serve different websites from different directory locations on one domain in nginx?

I am trying to serve 3 websites by directory base in one domain ( www.abc.com, www.abc.com/vimb, www.abc.com/mail ). I tried these setting, but doesnt working for me. I have only a basic knowledge ...
3
votes
2answers
106 views

NGINX Serving Large mp4 Files extremely inefficiently

I am currently running nginx/1.0.15 on a Centos 6.6 OS. The server has the following specs: Intel(R) Atom(TM) CPU C2750 @ 2.40GHz (8 cores) 32GB Ram 5 x 6000 GB 7200 RPM (Raid 10) The Problem The ...
0
votes
1answer
34 views

What are soundd daemons, and why does nginx need the type under SELinux?

Curious what is soundd daemon. The wiki at http://wiki.centos.org/TipsAndTricks/SelinuxBooleans says it is "soundd daemon" but I'm not finding much additional info on internet. To get nginx ...
0
votes
1answer
45 views

nginx is not defining $scheme

I just upgraded from nginx 1.4.1 to 1.8.0 (along with an upgrade to Phusion Passenger 5.0.13). With that change the $scheme variable from our configuration no longer seems be set. The nginx ...
1
vote
1answer
135 views

Kibana 4, Logstash dashboard: how do I require Nginx authentication when saving but allow anonymous views?

I would like to require auth_basic nginx authentication to save all kibana 4 dashboards but allow anyone to view dashboards without authentication. I recently installed an ELK (Elasticsearch 1.4.5, ...
1
vote
0answers
39 views

Nginx and Apache setup with php-fpm issues. Random nginx bad gateway

I have inherited a server in which the previous administrator seemed to be using a combination of nginx and apache. I am not sure why the combination, other than someone thought nginx is being used ...
-1
votes
1answer
23 views

Migrate Centos7 to new server

I have a Centos7 server running a setup of nginx/dovecot/ispconfig/roundcube/mariadb etc.. and a few other smaller things (as per ...
-1
votes
0answers
30 views

Vagrant provisioning : failed to install Nginx

I used to launch a web project thanks to my vagrant box (a simple LEMP stack) provisioned with Ansible. And this time the provisioning failed when Nginx starts being installed. I don't know how to ...
1
vote
1answer
17 views

NGINX and log rotation: is missing log entries possible?

In it's simplest realization, one can implement NGINX log rotation as following: mv access.log access.log.0 kill -USR1 `cat master.nginx.pid` My question. Do we have a concurrency issue here? I ...
0
votes
1answer
19 views

Running Nginx as reverse proxy for gunicorn and apache2

I want to use nginx as a reverse for apache and gunicorn location / should be handled by apache location /webapps/should be handled by gunicorn upstream gfbu_app_server { server ...
-1
votes
1answer
19 views

simple nginx alias not working while trying to serve files other than docuemnt root

i am trying to serve images which are stored in different location other than document root. #avatar files block location ~^/pics/profile/(.*)$ { alias /home/data/site_data/profile/$1; } ...
-1
votes
0answers
8 views

How can I avoid a 403 for Nginx sites at Fedora? [closed]

I'm trying following configuration: server { server_name subdomain.admin.example.com; access_log /var/log/nginx/mediotiempo.com/subdomain_admin_example_com_access_log; ...
-1
votes
1answer
22 views

How do I add a “catch all” block to my nginx config?

I want to add a "catch all" block that returns 444 if anyone tries to hit my IP address with no host header. Right now if anyone hits my IP, it returns one specific random site that I am hosting. ...
2
votes
3answers
336 views

Using Multiple Load Balancers

I'm new to load balancing and I'm wondering if it's possible to use multiple load balancers to redirect traffic to my application servers. I don't really understand how this can be done. Shouldn't a ...
0
votes
0answers
33 views

Nginx/Transmission reverse proxy [closed]

I have 2 servers (localhost & DIFFERENT.SERVER). on the local host I have SickRage and a few other web apps set up, on DIFFERENT.SERVER I have NZBGet and Transmission set up. SickRage and NZBGet ...
0
votes
1answer
51 views

Out of memory for Wordpress sites on cPanel Nginx Hybrid VPS

I have a cPanel Hybrid VPS below are the specs: CPU (16 Core Xeon) dedicated 4GB Guaranteed RAM (dedicated) 6GB Burstable RAM 1Gbps Port Speed Installed cPanel and NginxCP All sites on server ...
0
votes
0answers
23 views

Using nginx as a reverse proxy in front of an http proxy

When I put the http proxy behind nginx using proxy_pass directive, the http proxy receives a request like GET /some/path while it expects to receive a request like GET http://some.domain/some/path. ...
-1
votes
0answers
31 views

Forbid everything but robots.txt

On my Nginx setup I have some rules for 403'ing requests based on their headers, and for the most part it's helpful for blocking tools or bots I don't want to have access to my content, identifying ...
0
votes
0answers
61 views

Nginx www. -> root SSL redirects

I AM USING DINORSAUR.COM AS AN EXAMPLE, I DONT ACTUALLY OWN IT Trying to figure out how to get https:// www.dinosaur.com to redirect to https:// dinosaur.com I have the certificate for ...
1
vote
0answers
32 views

Nginx rewrite rules for all vhosts

I have a huge referer blacklist with that I want to stop referer spam on all my websites (https://perishablepress.com/blacklist/ultimate-referrer-blacklist.txt). Currently I have to change all my ...
0
votes
1answer
43 views

Get a blank page when view php-fpm staus on multiple pool config

I am trying to enable the nginx and php-fpm status page. I am able to get nginx status page working, but not the php-fpm. I have one site on the server, but two php-fpm pools. I have restarted nginx ...
1
vote
2answers
61 views

Redirecting nginx to another internal port not working

I have an nginx instance running on port 80 and another app (embedded jetty) running on the same machine on port 4567. I'm trying to redirect any request that includes /api/ in the URL, to the server ...
0
votes
0answers
41 views

nginx: Dynamically limit requests based on path

We have a service that serves up user-created assets dynamically. So a user can upload a file and share it using a url like /path/to/asset/unique_id. We currently use the limit_conn module to protect ...
1
vote
1answer
39 views

nginx loading page very slow

I just deployed nginx in a new environment with the same configuration that I've used previously and I am seeing some very odd behavior. Nginx is configured as a reverse proxy for Solr, when I try ...
-1
votes
0answers
22 views

Nginx and Regex: Can it do what I want?

Consider the following request string: http://<website>/<LotsOfOtherInformation>;SetCamera:Camera5-SetText:TextField1:$sometextinput$-SetText:TextField2:$somedifferenttextinput$ There's ...
0
votes
1answer
59 views

(Passenger Agent) Signal received. Gracefully shutting down

I have a rails application that I am deploying on an aws ec2 instance, this is my first time using the Rubber Gem, for which I have followed this tutorial. After removing the default nginx ...
0
votes
1answer
20 views

NGINX cache based on cookies

Is there a way for NGINX to have a different cache depending on the value of a cookie? In my case, I have a website (in my case, a plugin) that creates a cookie called devicePixelRatio. This is 1 in ...
1
vote
1answer
34 views

NGINX: Rewrite numeric URL segment with prefix

I'm aiming to have some old URLs work with the new CMS we're migrating to, but it can't support purely numerical URL slugs for some reason, so the new system has them as "/calendar/event/old-42" ...
0
votes
1answer
18 views

Two Node Apps, One Nginx Server

I'm very new to using Nginx, but it doesn't seem that complicated. I have two node apps (using forever), one running on port 2368 (domainA) and the other on 2367 (sub.domainB). domainA works as ...
0
votes
1answer
63 views

Intercepting the browser's basic authorization popup with nginx

I am trying to intercept the basic popup with nginx and stuck at the user password. I have a landing page where users would insert a username/password and the form gets posted to ...
1
vote
0answers
17 views

Nginx domain to subdomain redirection

I want to redirect all the traffic from example.com to test.example.com and I have written following rule for that : server { server_name example.com; # change to match your URL return 301 ...
3
votes
0answers
43 views

Optimal server stack for Wordpress [closed]

There are numerous tutorials/articles(some even with benchmarks) on how to create an optimized stack to run Wordpress(or any dynamic site, for that matter). The site doesn't get frequently ...
1
vote
1answer
27 views

Nginx 1.6.2 limit_req_zone: is there a key that identifies unique users?

I am currently managing a website where users are sometime really hasty about new content, and refresh the page intensely leading to a high server load and eventually a crash. I optimized the website ...
1
vote
0answers
31 views

how to avoid An error occurred page? [closed]

I installed nginx server in windows for PHP in localhost. When page loads if got any warning messages or errors, I got the error page like An error occurred. Sorry, the page you are looking for ...
0
votes
0answers
25 views

nginx php 5 and upload_max_files

Hi i am running up the walls i have nginx and a php-fpm Installation when i run Wordpress i get a 3MB Upload Limit in phpinfo() i find upload_max_filesize 3M At the Top i found Configuration ...
0
votes
1answer
41 views

Disable TLS 1.0 in NGINX

I have a NGINX acting as a reverse proxy for our sites and is working very well. For the sites that need ssl I followed raymii.org to make sure to have as strong of a SSLLabs score as possible. One of ...
-1
votes
1answer
31 views

Error: “invalid number of arguments in ”uwsgi_param“ directive” on nginx restart

CentOS 6.6, nginx 1.0.15. I'm trying to configure nginx <-> uwsgi <-> Django stack, using this tutorial. The nginx conf file is: upstream django { server 127.0.0.1:8001; } server { ...
8
votes
2answers
92 views

nginx proxy_pass eventually returns GATEWAY_TIMEOUT even though server is still active

I have set up a nginx proxy passthrough which works fine when nginx initially loads up, but eventually (maybe after a day or so?, not too sure at this point) the location that is a proxy passthrough ...
0
votes
0answers
14 views

How to take backup of nginx cache folder along with metadata?

I want to take a backup of nginx cache folder ( the proxy_cache_path ) and its metadata of the main server and use that as the cache folder of a secondary server. This is so that if the main server ...
0
votes
1answer
74 views

nginx upstream and fail_timeout

The definition from the official nginx documentation on fail_timeout states the following: * the time during which the specified number of unsuccessful attempts to communicate with the server should ...
0
votes
2answers
41 views

max file size exceeded nginx php

I have NGINX server with FASTCGI php-fpm 127.0.0.1:9000 which php.ini is under /etc/php5/fpm/php.ini I increased upload_max_filesize and post_max_size in php.ini The Fastcgi params is like this ...
0
votes
0answers
25 views

Nginx 'An error occured' on accessing website subdirectory

I'm running nginx on a digitalocean droplet (Ubuntu 14.04.2) and have a ghost blog running in a subdirectory (brae.io/blog). It's been up and running fine for some time, but today when I attempted to ...
0
votes
1answer
33 views

nginx: “X” directive is not allowed here in default virtual host config

I have searched around for a while on this error, and I can't pick up anything offensive in my config files. When running a config test, it gives me the error above (for any line added to the virtual ...
1
vote
2answers
36 views

Automatic reloading of configuration files (nginx.conf, etc) after changes

I keep forgetting to reload nginx settings, sudo service nginx reload, while working on / experimenting / learning the config files, nginx (and other included config files). Is there a way of ...
0
votes
0answers
20 views

rewrite nginx 2 parameters

server { listen 127.0.0.1:80; server_name ap5 www.ap5; root home/ap5/public_html; index index.php index.html; log_not_found off; access_log logs/ap5-access.log; error_log logs/error.log error; ...