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

Nginx SSL offload causes loading the page imperfect in the client side

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 / { ...
0
votes
0answers
26 views

Nginx multiple download freeze

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 ...
0
votes
0answers
9 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 ...
1
vote
0answers
19 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 ...
-1
votes
2answers
27 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
9 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 ...
0
votes
0answers
5 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
18 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
12 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 ...
1
vote
0answers
16 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
10 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
21 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
7 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
29 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
21 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
1answer
30 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
28 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
25 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
21 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
24 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
0answers
18 views

Setup Chiliproject on Nginx Passenger [on hold]

I have a hard time setting up the Chiliproject on Nginx + Passenger. I got this error whenever I try to access it:- 2015/04/15 12:31:23 [error] 5616#0: *2 directory index of ...
0
votes
1answer
20 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
29 views

Two domains, same NS and Elastic IP redirect [on hold]

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
15 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
26 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
35 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
11 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
34 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. ...
0
votes
0answers
24 views

How to configure CentOS VPS Server with WHM/CPanel to run both NodeJS and nginx/apache [on hold]

I've tried (unsuccessfully so far) to setup a CentOS VPS server to run both NodeJS and PHP applications (which means having a NodeJS server + Apache/nginx running together) under two different ...
1
vote
0answers
15 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
23 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
31 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
23 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
36 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
28 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
23 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 ...
0
votes
1answer
33 views

How to install nginx-upload-module on production server?

My nginx server was installed by the following approach: sudo add-apt-repository ppa:nginx/stable sudo apt-get update && sudo apt-get install nginx Now I need to ...
0
votes
0answers
38 views

massive amount of CLOSE_WAIT due nginx (lsof)

My VPS keeps hanging up every 5 days. I can see that the nginx worker processes are eating up my memory over time. I think this is due the massive amount of CLOSE_WAIT's open. When I type LSOF, I get ...
0
votes
2answers
50 views

Nginx www to non-www, forward to http, and forward to https at specific location

In my nginx config, I intended to reach purposes below: forward www to non-www forward https to http only use https on uri with pattern 'secure' Code below reach the goals, except that ...
0
votes
1answer
26 views

Unicorn displaying Rack errors uninitialized constant Rack::Lint::REQUEST_METHOD

I've attempted to install Unicorn + Nginx on Ubuntu 14.04. Whenever the site gets accessed (via localhost:8080 or via Nginx) it just returns a blank 500 error. The error log gives me the following: ...
0
votes
3answers
41 views

Why my browser wouldn't load all image resources at once?

I am trying to optimize the loading time of a webpage. Currently, the main http request can be done in under a second, however, the consenquent loading of images seems "to cascade": ...
0
votes
1answer
17 views

Nginx FastCGI Caching possible on custom URL's?

I am trying to build a custom caching solution for my website with FastCGI caching. I'm trying to cache only certain URL's that get a boat load of traffic. I know from my logs exactly which URL's ...
0
votes
0answers
22 views

nginx cache always returns MISS

I have 4 upstream server and I want to serve static files. I don't want to cache API calls response. This is what my upstream server returns for a sample CSS file: curl --verbose -X GET ...
1
vote
1answer
52 views

SERVER_NAME vs HTTP_HOST (Nginx + PHP)

I have a catchall server configuration that gets all sub-domains and point them to the same PHP script. There are thousands of sub-domains and they are created dynamically. The PHP script uses the ...
0
votes
0answers
15 views

Nginx Mod Pagespeed - Fetch external Resources

i tried to use mod pagespeed as proxy for nginx in my config i added as example pagespeed MapProxyDomain "https://example.com/cache/" "https://bnetcmseu-a.akamaihd.net/cms/user_avatar/"; The result ...
0
votes
1answer
17 views

nginx + PHP-FPM disable PHP functions only for certain virtual hosts

How can I disable some php functions only for some of(currently only 1) virtualhosts on my Nginx+PHP-FPM stack?