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

2
votes
1answer
31 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
33 views

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

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
32 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
31 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
11 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? [closed]

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

How to map DNS entries to ports using Nginx [closed]

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 [closed]

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
29 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
31 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 [closed]

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 ...
2
votes
0answers
19 views

nginx - connect() failed upstream under load testing

I've been doing some load testing with wrk of my nginx reverse proxy -> my web app setup and I noticed that when I get to 1000+ concurrent connections, nginx starts returning 502s and the following ...
0
votes
0answers
34 views

Nginx not looking for ssl cert in location specified in nginx.conf

nginx conf looks like this: server { ssl_certificate /etc/nginx/ssl/nginx.crt; ssl_certificate_key /etc/nginx/ssl/4096_SSL.key; systemctl status nginx.service shows ...
-2
votes
2answers
31 views

How can get these NginX try_files to work

I do have a website, which is not Wordpress, and I'm trying a solution for a simple rule. On NginX how can I write a try_files to this case: The link is: http://mywebsite.com/index.php?open=fiction ...
0
votes
1answer
26 views

nginx or haproxy or varnish Multiple IP addresses, reverse proxy AND manual failover

Ok, so here is all that I'm trying to accomplish. Back Ground I have multiple IIS web servers, each running multiple web sites each with their own IP address. Each IIS "Web Site" through programming ...
1
vote
2answers
21 views

Disable Gateway Timeout for Specific Nginx Port / Folder

How can I disable the nginx timeout when accessing through a specific port, or simply a specified folder. Whichever is easier. Basically I have some scripts which need to execute for a long period ...
0
votes
0answers
45 views

Deploying a (Ruby) web server in a Docker on Elastic Beanstalk: is this double web server ok?

We have a web app in Ruby which is deployable via a Docker setup, among other things to have exactly to same Ruby environment from developers to the production server. We chose to deploy it on AWS ...
-1
votes
1answer
13 views

Pass ASP as PHP on nginx

I have been trying to parse .ASP files as PHP, but no matter what I try (for hours), it just doesn't work. None of the tutorials/notes I find seem to work for me! Either file(s) get downloaded with ...
2
votes
1answer
92 views

Nginx and gunicorn are not displaying the whole page (caching issue)

I have a django application, which works fine on django's server. I just configured it to work with nginx and gunicorn. Almost every page works just fine except for one of them. It is a pretty big ...
1
vote
0answers
33 views

Accessing Apache page using NGINX after custom authentication

I am using ubuntu 14.04, In which apache is running on port :8080 and Nginx is running on port :80 I am using following code to access apache pages using nginx with my own login page for ...
1
vote
0answers
27 views

Special nginx hotlink protection conversion from Apache .htaccess rule

I have the following anti-leeching rewrite rule in Apache, which i'd like to have in nginx. I see cookie or referrer rule examples. But none combining both, so I am not sure how to go about this. ...
0
votes
0answers
19 views

connect() to 127.0.0.1:5601 failed (13: Permission denied) [duplicate]

I have NGINX setup as a proxy for Kibana, a Java server running on 127.0.0.1:5601. If I run curl http://127.0.0.1:5601, I get access to Kibana and everything works great. However, nginx can't seem to ...
-1
votes
1answer
15 views

How to configure xymon hobbit with nginx instead of apache

i installed xymon on debian 7 with an apt-get install xymon now i can't find how to configure nginx.conf to make it work i tried this but not working when i try to access http://debian.local/xymon, ...
0
votes
1answer
32 views

nginx: Why SSL config on one domain enables the others?

Say I have app1.domain.com and app2.domain.com, and its basic config files app1.conf and app2.conf, inside vhosts.d folder. SSL config files should contain the path of the app, and the path of the ...
-1
votes
0answers
30 views

symfony on nginx, first setup, 404 error

I am new to web developement and start to learn about nginx and symfony on how to set up a website. But after my setup, I get the following error when I try to access "localhost" using my web ...
1
vote
2answers
40 views

nginx - why i can't use variables in proxy_pass path?

Why i can't use variable $user in proxy_pass - like in example below? server { listen 80; server_name ~^(?P<user>[a-z|A-Z|0-9|_|-]+)\.example\.net$; root /home/$user/webapps/; ...
2
votes
1answer
37 views

What I have to modify to have SELinux allow nginx to act as an IMAP/POP3 proxy?

By default nginx under CentOS 7 will fail to start if used as an IMAP/POP proxy. This is because of SELinux. How can SELinux's configuration be altered, without disabling its protections, to allow ...
0
votes
2answers
29 views

How can I get Nginx to listen on all host names instead of specific ones?

This is a part of my /etc/nginx/nginx.conf file. (I've modified it here slightly as to not disclose the actual IP address or DNS entry, but you get the idea.) server { listen 80; server_name ...
1
vote
1answer
22 views

Nginx: Selective On/Off of Auth Basic Based on Realm

I run SugarCRM on a LEMP stack and have it closed down with auth_basic. That works fine, headers show: WWW-Authenticate: Basic realm="Username and Password are required" Some files within SugarCRM ...
0
votes
1answer
27 views

NginX Nested Location Issue: Spitting out raw PHP

I've tried hard to understand NginX's logic in location order processing but it still is beyond me, and I suspect that's why I am getting the following issue. I run a SugarCRM instance, which I have ...
0
votes
1answer
28 views

Nginx Frontend, Apache Backend, Too Many Time Wait Connections

I am using Apache as a backend with suPHP and mod_sec and nginx as a frontend proxy. This works well so far, but for some reason Apache suddenly spawns so many processes that the CPU load goes up a ...
1
vote
2answers
32 views

Two domains, same NS and Elastic IP redirect [closed]

I have two domains; example.com and example-x.com - the former is the main domain all traffic should go to. Both domains are pointing to the same name servers and each have individual hosted zones in ...
0
votes
0answers
18 views

Reverse proxy is not working

I'm trying to configure nginx as reverse proxy: apache: listen on localhost:8777 nginx: listen on port 80 But I go to http:/blog.example.com/blog, browser it outputs: Error - ...
0
votes
1answer
38 views

nginx config - replace/rewrite all dead links on a page. Add prefix to the uri

I want to inject "project name" to every link on a web page. Example: link and site http://localhost/osqa/ is working, but when I'm on the osqa page, all links are directing to localhost directly ...
0
votes
1answer
47 views

Nginx location match causes 404

I am trying to add behavior for certain file types, but because my content isn't in the same folder, I hit a problem where the location match causes Nginx to look for content in the wrong folder. ...
3
votes
0answers
21 views

OCSP stapling with nginx

I'm having trouble with OCSP stapling in nginx. So I start up the openssl ocsp daemon, and then I visit my site. Then it says Invalid request. I am using a private PKI and CA. SSL key: 8192bit DH key ...
0
votes
1answer
43 views

nginx one domain few websites

I am having problem with configuration of nginx for few pages on one domain. For example we have example.com. This page allows u to buy some goods, but I would like to seperate pages for continents. ...
3
votes
1answer
76 views

nginx upload progress return me always same size and recived

I set my nginx static content domain like this: # static0.mywebsite.com static1.mywebsite.com static2.mywebsite.com static3.mywebsite.com server { # upload limit # upload_limit_rate ...
-1
votes
1answer
27 views

nginx 404 on wp-admin directory

Getting a 404 when access the /wp-admin/ folder. Any idea why? Here's the configuration file - upstream domain_http { server 192.168.1.2:80; } server { listen 192.168.1.3:80; ...
0
votes
0answers
35 views

Nginx: 2 domains on a single server

I have a domain already configured on Nginx (so far so good). Now I added another domain (domain2.com) to Nginx and when I try to access it, it directs to the first domain (domain1.com). domain1.com ...
0
votes
1answer
39 views

Public Key Pinning headers correct setup and failure test

I'm trying to set up Public Key Pinning header in nginx 1.7.12 (Public-Key-Pins) but I seem to be missing something. I know how to generate the relevant pin-sha256 fields. I thought it will work like ...
-1
votes
0answers
43 views

5 second delay for OnlyOffice (mono-fastcgi & nginx) on Linux

Setup Debian 8 (jessie) - fully up to date. Server is in local network, ping <=1ms, bandwith 10..40 Mbit (bing -s 124 -S 1024 localhost <server>) the server is also running some other ...
0
votes
1answer
38 views

nginx - regex captures for multiple locations

Creating regex captures for multiple locations. Tree structure: /home/user/webapps/ ├── index.html <= content: root. ├── osqa │ ├── index.html <= content: osqa test A. │ ...
0
votes
0answers
9 views

How to create multiple folders for nginx_upload_module?

I've just setup nginx_module_upload for uploading images. As official documentation describes upload_store syntax: upload_store [level 1 [level 2 ]... ] default: none context: ...
0
votes
0answers
15 views

How to convert files to jpg format in nginx?

I've just setup nginx uploading with nginx_upload_module with the following configuration: location = /upload { # backend upload_endpoint upload_pass @upload_endpoint; upload_store ...
0
votes
0answers
35 views

Baidu trying to access .ftpquota in Nginx access.log

When I look at the Nginx access.log there are always several attempts from Baidu to access the file .ftpquota. When I do a ls -a I can see that the file even doesn't exist. I don't use FTP. Here are ...