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

-1
votes
1answer
30 views

plesk - Loopback HTTP connections go to incorrect vhost

Running plesk 12 and noticed the default vhost log ( /var/log/httpd/access_log ) is full of these 404 errors: [25/Nov/2014:22:17:40 -0500] "POST ...
0
votes
1answer
67 views

Drupal 7 Multi-site Sub-folders nginx configuration

I'm using perusio configuration for drupal but I think that is only designed for single web site. php does not work in subfolders. I want to create a structure as follows: Main site ...
0
votes
0answers
25 views

NGINX: Disk write spike and/or not enough workers error from sudden surge in traffic causing 500 errors

I have been trying to diagnose an issue we have on our production servers. We have a server running NGINX as a load balancer which splits requests between four application servers. At least a few ...
1
vote
0answers
66 views

NGINX using 100% of the server CPU when testing with Blitz.io

I'm facing an issue here and after four days of looking around I decided to ask for some help here, after all a million heads can think a lot better than one. I have a Ubuntu 14.04 server setup with ...
0
votes
1answer
27 views

How do I configure nginx on RHEL to recognize root SSL certificates of external sites?

Setup: I have a nginx reverse proxy that is a load balancer for ASP.NET applications. The problem is when ASP.NET application tries to access an external application, the SSL handshake fails. I think ...
0
votes
2answers
26 views

Nginx redirect last fragment in string

I'm struggling to get my head around how to rewrite the following url: http://example.com/blog/01-01-01/string to http://example.com/string The following regex matches the string - ...
-3
votes
1answer
45 views

nginx restart fails: [emerg] directive “pagespeed” is not terminated by “;” in /etc/nginx/vhosts.d/name.d/pagespeed.conf:14 nginx [closed]

attempted to restart nginx to get this: [emerg] directive "pagespeed" is not terminated by ";" in /etc/nginx/vhosts.d/appname.d/pagespeed.conf:14 nginx. pagespeed.conf: pagespeed Domain domain.com ...
0
votes
1answer
36 views

nginx: Append to proxied URL with proxy_pass

I'm dealing with some legacy issues where I have to reconfigure servers hosting a PHP based application. One of the decisions was to move away from Apache onto Nginx. Now the application hosts two ...
-1
votes
1answer
65 views

Nginx Enable HTTPS/SSL when forwarding to other URL

Currently, I'm working with an AWS Ubuntu EC2 instance, running a Node.js app on port 3000, that has an Nginx reverse proxy. I have been trying to enable HTTPS and add a SSL certificate and I've been ...
1
vote
1answer
37 views

nginx 301 redirects not working as expected

I have added the following rules to my nginx.conf file rewrite ^/top100/Armin%20van%20Buuren/(.*)$ http://www.example.com/armin-van-buuren/$1 redirect; rewrite ^/top100/armin-van-buuren/(.*)$ ...
0
votes
1answer
27 views

Redirect Nginx only if params are not present

Here's my requirement for redirecting in Nginx - Redirect Example 1. www.example.com/gaming.html -> www.example.com/gaming-zone.html No Redirect example (when params are present, dont redirect) ...
-1
votes
3answers
49 views

ldap. What is binddn_passwd [closed]

I installed Nginx with LDAP, it works. But I can't understand the purpose of "binddn" and "binddn_passwd" ldap_server dc1 { url ...
0
votes
0answers
48 views

PHP+nginx, normally super fast, sometimes %100 504 Gateway Time-out errors

I am running an nginx webserver serving php files with FPM. Normally it works super well and fast, but sometimes though there are periods where all page loads will hang and return 504 Gateway ...
-3
votes
1answer
54 views

I can't configure php on serwer nginx for BigBlueButton [closed]

Hi I have problem with configuration a nginx for php, because I have installed BigBlueButton and I would install php in /var/www/bigbluebutton-default. When I add this to bigbluebutton in ...
0
votes
1answer
23 views

404 error for WebResource.axd with fastcgi-mono-server4

I have a simple ASP.NET WebForms app that I created in Windows and copied over to a Linux server (Ubuntu 14.04) that is running fastcgi-mono-server4 and nginx. The app runs fine on windows, but when ...
12
votes
2answers
482 views

Is there an elegant way to block a bunch of referrers at once?

In order to prevent referrer spam, my nginx.conf contains a section like this: if ($http_referer ~* spamdomain1\.com) { return 444; } if ($http_referer ~* spamdomain2\.com) { return 444; } if ...
0
votes
1answer
82 views

Correct rewrite syntax to remove index.php

I got an nginx vHost that hosts: a CMS in / a magento shop in /store Things are running fine except one thing: Removing index.php from the URL. At the moment the following URLs are working ...
0
votes
0answers
27 views

Enable charset header in nginx 301

I have nginx redirecting http requests to https. Currently the header in the redirect is Content-Type: text/html. I want it to be Content-Type: text/html;charset=utf-8. Here it says I need a custom ...
-1
votes
1answer
20 views

nginx and tomcat in eclipse - multiple apps

I'm running Tomcat with Nginx as a load balancer. And too keep all the redirects etc consistent, I am also running it in front of Eclipse. Tomcat in Eclipse seems to fail it you try to configure ...
1
vote
2answers
89 views

return error 410 for location regex? in nginx

I'm using nginx-1.6.2,2 and I'd like return error 410 for URL that matches /browse.php?u=http, so requests such as this will get 410: 162.218.208.16 - - [21/Nov/2014:12:35:40 -0500] "GET ...
1
vote
1answer
79 views

SSL proxying on nginx — different behavior in different clients

I'm running an SSL-required web service and planning to switch hosting providers. To avoid downtime for our users while DNS caches clear, I'm planning to proxy requests from our old server to the new ...
-5
votes
1answer
41 views

How to update nginx? [closed]

I try to update nginx but it tells me the last version is 1.2.1: root@localhost:~# aptitude install nginx No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, ...
0
votes
0answers
58 views

Nginx, too many redirects, err_too_many_redirects

I have been learning and testing various installations of NGINX for proxy_pass (both custom compilation and standard install) using 2 servers. The problem(s) that I am having relate to ...
0
votes
0answers
17 views

What's the best way of creating NGINX server block on OpenStack floating ip allocation?

Im not sure if I'm approaching this from the right angle. I'm wanting to create a subdomain of bournetohack.com on a NGINX server upon associating a floating IP. What I was thinking is too tag onto ...
0
votes
1answer
23 views

Allow dev user to edit files that sometimes belong to www-data

This question has been asked time and time again but none of the answers seem to answer my specific question - either that or I'm not getting it. Anyway, as per the title, I'm trying to limit our web ...
1
vote
1answer
47 views

Setting up SSL on nginx

I'm trying to set up SSL with Nginx, however I'm having a few problems. I received all the required files, and created the bundle as shown here, and added it to my site configuration as below: server ...
0
votes
0answers
40 views

Block empty user-agents nginx?

My site was under attack and I noticed all the user agents are blank. How can I block this with my nginx? I have no idea what to block, if this is an empty user agent or what.
-1
votes
2answers
56 views

Redirecting/rewriting wildcard domains to ssl in nginx

I have tried all the solutions found on this site and others but am still having a problem with redirecting a wildcard subdomain with http to https. I still end up with ...
0
votes
1answer
41 views

nginx location regex match everything but home

I am trying to restrict access to everything but home "/". I mean: allow people to access example.com but restrict access with password to any other path: example.com/any-other-path. I have tried ...
0
votes
1answer
74 views

502 bad gateway when trying to log out through nginx reverse proxy

Im trying to log out my php application when the nginx reverse proxy throws a 502 bad gateway error. The error log shows this error [error] 20284#0: *1 upstream sent too big header while reading ...
0
votes
1answer
407 views

504 Gateway timeout / 502 Bad gateway after installing php curl - server nginx

I have (well had) a working server with nginx on board. A server (dedicated) was only used to host a drupal site. Recently we decided to host also a magento store on it and started preparation. Since ...
1
vote
2answers
44 views

“No input file specified” when running php under fastcgi inside chroot under nginx outside of chroot

I have a scenario with nginx/1.4.6 running on Ubuntu 14.04 but with php/5.2.10 inside a chroot Ubuntu 9.10 (Karmic Koala). My issue is that all requests to php files result in the dreaded "No input ...
1
vote
3answers
318 views

nginx failed (13: Permission denied) uwsgi (502 bad gateway)

I am having trouble running my application on a new DigitalOcean droplet. The machine runs CentOS 6.5 My /etc/nginx/nginx.conf user nginx www-data; worker_processes 1; error_log ...
0
votes
1answer
115 views

PHP file downloaded instead of executed with nginx try_files

I'm using Ubuntu 14.10, nginx 1.6.2, php 5.5.12. I have a site set up like this: server { root /usr/share/nginx/www/oliviataussig; index index.php; server_name oliviataussig.com ...
1
vote
1answer
43 views

Using nginx to proxy multiple instances of sockets.io

I have two separate node.js applications running behind nginx. Both the apps use socket.io and express. One is served on port 5000 and the other on port 5001. But we need them both accessed through ...
0
votes
0answers
96 views

Nginx php-fpm in docker - Getting 404s

I'm trying to launch to containers an nginx container and a php-fpm container. php-fpm container exposes port 9000 and the nginx container exposes port 80. I updated the conf file to point the Once ...
1
vote
1answer
56 views

Why was an older version of Nginx installed?

I installed Nginx and PHP5-FPM and have it all working, but I noticed that I have Nginx 1.2.1 installed and not the most recent stable version (1.6.x). I also noticed that PHP-FPM had PHP 5.4 and not ...
1
vote
1answer
80 views

WordPress admin password protection not working on Nginx server

I am totally confused with Nginx server password protection. It does not work as we want. This is my Nginx website configuration block. server { listen 80; server_name example.com; ...
1
vote
0answers
47 views

Trouble with Uwsgi settings

I have a uwsgi ini that looks like this: [uwsgi] socket = :8001 processes = 4 master = true wsgi-file = /project/dev/myproject/conf/deployment/wsgi/dev/myproject-site.wsgi harakiri = 30 daemonize = ...
-1
votes
1answer
61 views

Bonding multiple proxy server [closed]

I want to use multiple proxy server at the same time to speed my downloads. How can use multiple proxy at the same time. Reverse Proxy products such as haproxy nginx can use multiple proxy server but ...
0
votes
0answers
37 views

How to redirect to an other link when excess request (limit_req) with Nginx

I have been trying to limit the requests coming from a single IP address successful with module limit_req in Nginx. But now I want to redirect to an other web-page for showing some messages.How could ...
-3
votes
2answers
62 views

How to uninstall nginx on CentOS7 [closed]

I installed Nginx from src myself using this guide and now, I would like to get rid of it. But it seems there is nothing to do, aside from wiping out the src in usr/local/src I did yum list installed ...
0
votes
1answer
98 views

Nginx virtual host servername, root

I installed nginx-1.6.2,2 on FreeBSD-9.2-RELEASE-p5 and here is my configuration: # tail -2 nginx.conf include _includes/*.conf; } # cat _includes/XXX.conf server { server_name XXX; root ...
1
vote
3answers
75 views

Nginx redirect all www.domain to domain and all domain to www.domain

I'm trying to get nginx to redirect every request it receives from any domain by either adding or removing a www. prefix. This is for a little redirect service. If you point www.any.domain to it, it ...
2
votes
1answer
112 views

nginx set variable in location

I am trying to optimize my nginx configs, so it would be possible to set one variable, and all location paths would update automatically. I have four lines in question: server_name php.domain.com; ...
0
votes
2answers
690 views

How do I set permissions for uploading media in WordPress? (Ubuntu 14.04.1, nginx 1.4.6)

I'm having trouble finding the correct permissions for running a WordPress site on my droplet. I followed this guide to configure the site: How To Configure Secure Updates and Installations in ...
0
votes
0answers
20 views

uWSGI suddenly won't start again after server crash on Debian

After my server crashed i am unable to start uWSGI again, and keep getting following errors on unlink() and bind(). I start my service as root, so it makes it even more strange. Sun Nov 16 15:25:24 ...
0
votes
0answers
46 views

Bottle neck of nginx?

I'm using nginx as a load balancer on amazon ec2 m3.large instance. This load balancer will receive loads from a load generator and distributed them to the 3 instance with mysql database serves as ...
0
votes
1answer
22 views

What characters are special in an nginx map instruction?

I'm moving a site to a new structure and want to use nginx's map to map old URLs to their new locations. For simple cases that works like a charm, but I have trouble with some values. This is what I ...
1
vote
1answer
51 views

Set up nginx for access controlled video streaming

I am trying to create an application thats core it will be to show videos in a learning environment based on meteor/nodejs. The problem is the streaming itself. As described on many pages, node is not ...