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
0answers
28 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
35 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
31 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
168 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
49 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
55 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
96 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
39 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
47 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
52 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
45 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
60 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
3answers
56 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
37 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
1answer
100 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
29 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
33 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
101 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 ...
2
votes
1answer
44 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 ...
-2
votes
1answer
43 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; ## ...
0
votes
0answers
47 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 ...
-4
votes
3answers
63 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 ...
0
votes
1answer
32 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 ...
2
votes
1answer
43 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
39 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
49 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
32 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
56 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
33 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
62 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
37 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
87 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
16 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
112 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
59 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
37 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
20 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
43 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
39 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
vote
2answers
65 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
74 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
37 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
30 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
32 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
46 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
43 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
27 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
84 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
84 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
54 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 ...