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

Nginx forward ssl to ISPConfig lxc container

I am having issues with https connexions to the ISPConfig admin panel (port 8080). My setup is relatively standard. I own a physical host, which routes all traffic on common ports to an LXC container ...
0
votes
0answers
12 views

nginx location within named location?

I'm trying to filter the request to my website. So I'm using below configuration: location / { if ( $ifbot = "1" ) { return 482; break; } return ...
0
votes
2answers
11 views

Nginx & PHP-FPM: Query parameters won't be passed to PHP

I am currently setting up a machine for local development using Vagrant. Everything runs as it should, expect query parameters aren't passed to PHP on subpages. That means on www.example.com/?a=b, ...
0
votes
0answers
15 views

nginx + fastcgiwrap = 502 Bad Gateway

I'm trying to execute a cgi script on my web server. I'm running Debian 7.8 (wheezy), with nginx 1.8.0 and fastcgiwrap 1.0.3-3 (both installed via aptitude). Here are my nginx settings (taken from ...
0
votes
0answers
13 views

Website showing the default nginx page [on hold]

My website is showing the default nginx page. The ip of the vps on which the site is hosted is also showing the default nginx page. My site is thefeedy.com I am missing out a step and need help. The ...
-1
votes
0answers
8 views

NGINX + PHP5-FPM stop responding after some time [on hold]

I have some strange issues using nginx and php5-fpm. I'm running a server on my raspberry pi and it works flawlessly, but after some time the site takes ages to load and shows a 502 or 504 error. I ...
0
votes
0answers
18 views

How to redirect all http traffic to https [duplicate]

I am using nginx and would like all http traffic to become https using nginx. can someone post an example for nginx config file? Here is mine. it's not working and i don't have a lot of nginx ...
0
votes
1answer
12 views

Nginx proxy to upstream dedicated static file server

I'm in the R+D stages of the most important project of my life. I'm a single person on a a stretched thin income, so i can't quite afford a wildcard ssl certificate, and ssl is an requirement, however ...
0
votes
0answers
9 views

Nginx proxy rewrite to a different host

I've been banging my head against the wall trying to get this working. I'm hoping someone can point me in the right direction. I am trying to use Nginx to reverse proxy to a set of servers in a ...
1
vote
1answer
10 views

Nginx alias with trailing slashes

I have a sub-site working under a parent website like this: http://example.org/sub-site (http://example.org/sub-site/ works too) Everything seemed to work well, including : ./sub-site/sub-section ...
0
votes
1answer
14 views

PhalconPHP and AngularJS on Nginx

I am trying to run a combination of PhalconPHP and AngularJS of a Nginx webserver with the following file structure: /root /api index.php index.html PhalconPHP is located in the API folder ...
0
votes
0answers
7 views

How do I start nginx (+ passenger) with an RVM system-wide install on nginx?

My nginx installation was working with an RVM installation for single-user, but when I switched the RVM installation to a multi-user (system-wide) installation, /etc/init.d/nginx start gives a ...
0
votes
0answers
24 views

nginx - Allow any http-traffic that is not x-forwarded-for

In my nginx configuration, only a few whitelisted IPs are allowed (based on x-forwarded-for header), and rest all are blocked via deny all rule. Since nginx is running behind an AWS load balancer, I ...
0
votes
0answers
13 views

Proxy a URL in a path/location in nginx

I want to create a location block like this location /proxy/ { proxy_pass $url; } So I can reach arbitrary servers (and add headers, etc.) using something like this: ...
0
votes
0answers
19 views

ModSecurity + Nginx “SecRule” startup error

I've installed Nginx (1.8.0) + ModSecurity (2.9.0) from source on OpenBSD (5.6), without problems. But when I try to configure modsecurity with the default config, upon starting nginx I get: ...
0
votes
0answers
18 views

Unable to access server after hosting panel installation [on hold]

I cannot seem to be able to install any hosting panel on my VPS. I tried with several panels, last of them being Sentora (I've run the installation script on a fresh minimal install, as required in ...
0
votes
0answers
23 views

Handle redirects on proxied server

Hi I'm trying to make mirror for website.ru at website.com It should display website.com in browser and proxy_pass all traffic to website.ru. Here is my config: server { listen 443; ...
1
vote
2answers
27 views

nginx log when specific referrer is present

Because someone steals content from our website, I need to create additional log file, that logs only if http_referrer contains specific domain. Currently I have this: if ($http_referer ~* ...
1
vote
2answers
24 views

Nginx only responding to two virtual server definitions out of three?

I have a rather confusing problem that only affects one of my three nginx reverse proxy servers. I have defined a conf file with three virtual servers like so: # Django upstream tickets { ...
0
votes
1answer
31 views

How to proxy /grafana with nginx?

I've setup and started default grafana and it works as expected on http://localhost:3000. I'm trying to proxy it with nginx where I have ssl installed. I'm trying to have it respond to ...
0
votes
0answers
28 views

Nginx redirects http request to one vhost

I have installed nginx with php-fpm. When I try to access example.org it redirects me to https://example.com What's wrong with my configs? nginx.conf user www; worker_processes 1; ...
0
votes
1answer
46 views

Installing SSL certificate on nginx server

I am trying to install a positivessl certificate on my server without success. I started creating a mydomain.key file on my server and requested the certificate. I bundled the files using cat ...
-1
votes
1answer
37 views

Multiple websites running in docker containers, how to implement?

I am running two docker containers, using the following docker-composer script: db: image: cofoundry/mysql environment: - MYSQL_USER=wordpress - MYSQL_PASS=wordpress - ...
2
votes
0answers
27 views

Nginx cache unmanaged growth

We have two Nginx servers with independent local caches for caching images. Periodically there is problem with unmanaged growth of cache's size. This size may be far larger than max_size in ...
0
votes
1answer
39 views

How to join multiplte node.js intances to single domain?

I have on the same IP several node.js instances. Each instance running on a different domain via nginx reverse proxy. For instance: map_hash_bucket_size 128; map $host $backend_servers { ...
-2
votes
1answer
20 views

Nginx daemon starts with “daemon off” directive

I am using Nginx 1.4.6. I set daemon off; in /etc/nginx/nginx.conf, than I do nginx -s reload, than reboot and Nginx is still starting. I even delete /etc/init.d/nginx file and still starting. ...
0
votes
1answer
35 views

How to config Nginx runs php on sub directories?

I have 2 versions of portfolio website for 2 languages. I put them in 2 dir in the same root dir. /root/ |----vi/ |----en/ |----index.php Then I config nginx as below: server { ...
0
votes
0answers
40 views

Nginx TLS renegotiation

Our webserver has recently failed a PCI compliance test due to existence of "TLS Session Renegotiation Vulnerability" (CVE-2009-3555) However I'm not sure whether those results are right. We're using ...
-2
votes
2answers
28 views

Correct way to isolate separate websites on same VPS

I have a server running multiple websites (mostly WordPress) and want to separate them from each other so I can give a person access to one site and not the others, and also so any code run on each ...
0
votes
2answers
28 views

Nginx multiple roots

I'd like to divert off requests to a particular sub-directory, to another root location. How? My existing block is: server { listen 80; server_name www.domain.com; location / { ...
1
vote
0answers
43 views

How to log clients' real IPs when using CloudFlare + Nginx + Apache

I've been stuck for days trying to solve this problem, I hope someone can help me with this. I have Nginx stands as a reverse proxy in front of Apache. I'm able to log clients' real IPs by using ...
0
votes
1answer
17 views

HAProxy 1.5 Serving Static Assets Very Slowly

I'm doing a few side-by-side comparisons because we'd like to switch from Ngnix as a load balancer to HAProxy. The problem is that when I set up HAProxy I end up getting a really slow load time, ...
0
votes
1answer
17 views

How to set auth_basic for one file in NGINX? [duplicate]

Here is my config: server { #... location ^~ /wp-login.php { auth_basic "Restricted"; auth_basic_user_file /var/www/.htpasswd; } ...
-1
votes
1answer
43 views

nginx Access Control Origin Header is configured but doesn't work

I am getting a XMLHttpRequest cannot load http://website2.com/ads/dev_642e92efb79421734881b53e1e1b18b6/5534f8e14d514_1.html. No 'Access-Control-Allow-Origin' header is present on the requested ...
-7
votes
0answers
34 views

after ngnix restart,something get wrong? [on hold]

PHP message: PHP Fatal error: Unknown: Failed opening required '1024M' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0" while reading response header from upstream, client: ...
2
votes
0answers
20 views

Nginx + GUnicorn + Flask + www-data user - file lockdown

I have some pretty basic questions about I am deploying a Flask application in Gunicorn (19.0-1) on Ubuntu (14.10) in combination with Nginx. Since this app sits along side to Web2Py, I followed a ...
0
votes
0answers
29 views

Error: upstream prematurely closed connection while reading response header from upstream [on hold]

Recently I tried to implemented an Nginx extension module to save the request body to redis list (via RPUSH command) directly. However, I got a 502 Bad Gateway error when testing! Moreover, the ...
-2
votes
1answer
28 views

nginx (latest) is not working together with spawn-fcgi

My OS: Debian 7 (latest) x64 My Domain: www.DeadalusHD.com My nginx-vhost: server { listen 80; ## listen for ipv4; this line is default and implied listen [::]:80 default_server ipv6only=on; ## ...
-1
votes
0answers
28 views

Mobile Redirect exeption on NGINX

i used a small tutorial about Mobile redirects. User should be redirected from website.com to m.website.com. All working fine but the issue is now, if i link a image from the mainsite it can't be ...
0
votes
0answers
15 views

Nginx POP/IMAP proxy email [closed]

I am using nginx as proxy. Everything is fine but my email is not coming on the cPanel webmail. Can you suggest me what I should do in order to get emails? Here is my nginx config: ## Basic reverse ...
0
votes
0answers
10 views

munin monitoring, nginx, ubuntu: munin_stats-pinpoint graph 404

I installed and configured the munin-monitoring on Ubuntu 14.04 with Nginx as the web server. Everything went well but the "Zooming" graph cannot show. (I bound www.v.com to a LAN server, by ...
0
votes
0answers
10 views

How to set up nginx to work in Parallels serving static content? [on hold]

My nginx.conf is #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { ...
-4
votes
3answers
45 views

How to map DNS entries to ports using Nginx [on hold]

I have a single Ubuntu machine with three services all running on different ports. GitLab running on port 80 EtherPad running on port 9001 GemInABox running on port 9292. There are three DNS names ...
-3
votes
0answers
15 views

nginx process running after uninstall [on hold]

I have made a mistake and installed nginx 1.7.5 from source whilst I had nginx 1.6 running. I struggled to get both of them completely uninstalled. But when I run ps aux | grep nginx the result is ...
0
votes
0answers
29 views

Dovecot cannot create new user “No Domain Given” [on hold]

I am following a tutorial on how to create a mail server with Ubuntu, nginx, Postfix, and Dovecot, located here. From the tutorial, I use a script called adddovecotuser #!/bin/sh if [ ! $# = 1 ] ...
0
votes
1answer
18 views

Nginx on VM on ded. root server has very slow download rates

I'm running VMware ESXI on a kimsufi dedicated root with 100Mbit/s network access. As the root has only 1 public IPv4 available and ESXi cannot NAT its VMs, I assigned the public IP to VM#1 which is ...
-1
votes
0answers
12 views

Uninstall Phusion Passenger and repair package database [migrated]

Some time ago I installed Phusion Passenger with these instructions. I also have the debdeb.org repository in my sources.list. I now want to remove Passenger and install a clean nginx package from ...
2
votes
1answer
27 views

Nginx appears to be unable to connect to any upstream servers

We have an Nginx instance serving as a reverse proxy for a couple of domains, each hosted on their own box. Or, well, we used to. Yesterday I had barely finished updating the Nginx box with Pacman ...
1
vote
0answers
30 views

Nginx SSL offload causes loading the page imperfect in the client side [closed]

I have back end server running a web site on both http and https. Reverse proxying with nginx like: server { listen front_IP:80; server_name dns_name; allow all; location / { ...
1
vote
0answers
44 views

Nginx multiple download freeze [on hold]

We have a problem with Nginx. We have a filehoster, and our user can download 3 files at the same time. When we start 2 download it's ok, 3 download is slow, 4 download and more is impossible. Do you ...