Nginx ("engine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

learn more… | top users | synonyms

1
vote
2answers
23 views

Nginx not loaded chunk-stream1-$Number%05d$.m4s [closed]

I have a issue when nginx need to get content from the server that are named : chunk-stream1-$Number%05d$.m4s It just give me 404, and i have search about some rewrites but i have still not find a ...
0
votes
1answer
65 views

Attempting to block “wordpress” useragent is overloading CPU [duplicate]

I've had some DDoS issues - specifically the XML-RPC exploit (wordpress) wherein thousands on thousands of Wordpress instances attack my machine. I have the following in my nginx server block: ...
1
vote
1answer
36 views

How to config mutiple domains with Varnish and nginx

I read this article but I can't make my case work http://stackoverflow.com/questions/3334023/configure-multiple-sites-with-varnish This is my problem I have 2 domain : mysite1.com and mysite2.com ...
0
votes
2answers
27 views

Strange characters in nginx log starting with \x

I was hacked and checking nginx logs I found several requests like this one: 169.229.3.91 - - [18/Jun/2016:09:42:19 +0000] ")\xE7\xD1?\xD6\x18.\xC0\xCE\xA3\x7FR\xEA~O$\x0BLi\x13\xA0m\xE7\xF0H4\x92\...
-1
votes
2answers
15 views

What does the FAIL2BAN BadBots block ? Only Authentication related?

I am wondering if fail2ban is used only in order to block IP addresses that are from which there are authentication failures (SSH / HTTP auth. etc) or that it is also used for blocking Bots which ...
0
votes
1answer
53 views

Full end to end encryption with AWS Elastic Load Balancer, Nginx and SSL

You will see a lot of places on the web telling you the way to setup SSL with an AWS ELB is to set up a certificate on the load balancer and then forward traffic from port 443 to 80 so that traffic ...
3
votes
0answers
28 views

exclude IP from nginx access log

How to exclude some IP address from access log? This is my config: server { listen 443 ssl; [...] access_log /var/www/web/log/access.log; error_log /var/www/web/log/error.log; location / { ...
6
votes
2answers
282 views

10/20/40Gbps nginx large files caching webserver

I would like to find out the best possible configuration/hardware to deliver 40Gbps from a single server in this question. Situation We have a video share proxy server that offloads peaks from slow ...
1
vote
2answers
46 views

nginx sub directory wildcard rewrite

I have set up a server block on my nginx server, e.g. with domain testsite.com. I want to be able to install separate WordPress installations into direct child folders of the root folders, e.g. /var/...
0
votes
1answer
19 views

Implemeting Nginx as reverse proxy on an EC2 instance, for an Eclipse Che farm

Looking for scaling Eclipse Che (a cloud IDE), I'm implementing a Che Farm. In short, a group of Eclipse Che instances behind a reverse proxy. Ok, I'm implementing the reverse proxy using Nginx on ...
0
votes
1answer
29 views

Two wordpress servers setup with Nginx

I am trying to set up 2 wordpress servers with Nginx. Both sites are up and running fine: https://server.io/learn https://server.io/event However, I cannot access the page I created: https://...
2
votes
1answer
38 views

Configure nginx to send response with header and footer for HTTP body

I have a collection of memos in a folder /memos/items/ A single memo used to contain a SSI include statement for a HTML header part, up to and including the opening <body>, followed by the HTML ...
0
votes
0answers
22 views

Do I need to block my application port(In security group) for the security in Linux EC2 instance

What I DID I have two Play framework web applications which runs in 9001 and 9002 ports in AWS EC2 instance. I am using the Nginx proxy server to routing the two applications. I have configured the ...
0
votes
1answer
18 views

Nginx Subdomain Rewrites to Server Directory

We're making a move over to some Nginx servers from Apache. While we've used Nginx for various sites its been in a mostly basic config. However, one of the 'sites' (multiple actually) we host is a ...
-2
votes
0answers
15 views

high io wait in file uploading process

I have a server with the following information : two hard disk, sas and raid 6(50 T) 98G of Memory Intel(R) Xeon(R) CPU E5620 @ 2.40GHz 16 core OS is Ubuntu 16.04 and Swap is disabled We use ...
0
votes
3answers
37 views

Nginx SSL config returns too many redirects, but regular http version is fine

I have recently tried to add SSL termination to my NGINX server configuration. The regular http reverse proxy/load balance version is working fine. Unfortunately, the current config is returning "too ...
0
votes
1answer
20 views

try_files with a single @location?

I started from https://gist.github.com/mattd/1006398 and now I have this: root /data/example.com; location /sites/default/files/ { try_files $uri @proxy; } location / { ...
0
votes
1answer
81 views

nginx conditional proxy: invalid number of arguments in “try_files” directive

I have nginx used as a proxy for a handful of web services, running in a docker container, using the config below. I have the configuration to 90% of where it needs to be, but the problems for the ...
0
votes
0answers
21 views

Directory Index forbidden on sites/default/files - Drupal NGINX

We noticed this error when users filled up forms on our Drupal site, attached an image and saved it. To identify the root cause (I expected it to be an ownership or a directory permission issue). I ...
1
vote
2answers
59 views

OpenStack Horizon behind reverse proxy (nginx preferred)

Current situation: I have a Triple-O OpenStack installation (Liberty) where even the "public" network is in a private environment (10.24.7.0/24 network). The only way to get access to that network is ...
0
votes
1answer
25 views

Second domain on nginx redirects to first

I have a server on which I run a website at the domain example.eu. I've redirected to https and removed the www as per this answer. I now wish to add another website to the same server, at the domain ...
0
votes
0answers
27 views

nginx not starting: unsupported Verneed record of libGeoIP.so.1

I have been running nginx on my Ubuntu 14.04.4 LTS server for more than one year without problems. However, since a few days nginx fails to load (access.log shows last connection from June, 13th 2016)....
2
votes
3answers
40 views

Disk I/O and load average peaks once every hour

We have updated our server from Debian Wheezy to Jessie and from php5.6 to php7.0, but now we have a disk I/O and load average peak exactly every hour. The exact time depends on the system start time. ...
-2
votes
0answers
46 views

Get real IP address from nginx stream context

My config is stream { upstream web_server { server 54.194.65.153:443; } server { listen 443; proxy_pass web_server; } } So on my site in REMOTE_ADDR I ...
0
votes
1answer
38 views

nginx + gunicorn caching pages

I have a simple web app running behind nginx using flask+gunicorn and somewhere along the line a stale version of the page is being cached. My nginx config has add_header Cache-Control no-cache; and ...
0
votes
0answers
22 views

Nginx: How to forward http://my_ipaddress to http://my_ipaddress:8001/v1/offer/1

I am new to nginx and cannot configure nginx in my RHEL7.2. below is my default.conf in /etc/nginx/conf.d/. I want to forward mydomain/v1/offer/1 to mydomain:8001/v1/offer/1 server { listen ...
0
votes
1answer
26 views

My Shortlink Service Count More Hits Then Google Analytics. How Is This Possible?

I have created a simple shortlink service that does a 301 redirection just like Bitly. Rather than storing each visitor hit on a db on a redirection, I am simply analyzing Nginx's access log files to ...
1
vote
1answer
39 views

NGINX index.php rewrite rules wont work

Recently I changed my webserver from cpanel and CENTOS 7, to use nginx with an scipt called nDeploy, wich works well with wordpress and the sites hosted on my server. I have this script wich is not ...
1
vote
1answer
64 views

HTTP/2 enable does not work

On Ubuntu 14.04.4 LTS with HHVM(HipHop VM 3.14.1) and Nginx(nginx/1.10.1) I try to enable HTTP/2 like the following in my vhost server { listen 443 ssl http2 default_server; listen [::]:443 ...
0
votes
0answers
24 views

how to use nginx to proxy to a host requiring authentication behind an ELB

I've seen this post How to use nginx to proxy to a host requiring authentication?. I can't implement this under an ELB setup (http://www.emind.co/how-to/how-to-force-https-behind-aws-elb/). I want to ...
0
votes
0answers
27 views

Containerized Local Web Server Behind EdgeMax Router

I have an Edgemax Lite router with a couple of machines on a single lan. I have one of the machines set up with Ubuntu server 16.04 running LXD. I want to be able to run applications in containers on ...
-1
votes
0answers
33 views

How to resolve “unavailable modifier requested” from uWSGI log? [duplicate]

I believe this is occuring because of incorrect python interpretter for uWSGI. How can this be corrected? I have installed uwsgi-python-plugin and enabled it with plugin=python in my config file for ...
0
votes
1answer
88 views

How to block access to a folder and all its content if it is accessed outside localhost?

I'm trying to make admin folder accessible just to users reaching site from localhost. The configuration that calls PHP-FPM is below. Let's call it main snippet. location ~ \.php$ { ...
0
votes
0answers
93 views

Nginx: unexpected 404 page in php

This is from my NGINX configuration file location / { index index.html index.htm index.php; try_files $uri $uri/ /profile.php?nno=$uri&$args; } So, when file does not exist on the server, Nginx ...
0
votes
1answer
21 views

Nginx 'listen:port' directive, Cloudflare, and SSL

I have two websites on a server, each with their own vhost file in Nginx. Both are also on Cloudflare, and both have SSL certificates that I've got via Let's Encrypt. Both sites' vhosts files are ...
0
votes
2answers
50 views

Handling caching with NGINX when cookies are being set by the server

I've had very good performance results using NGINX microcaching. However, I'm still not sure how to best handle server responses that have the Set-Cookie header. Can responses from the origin ...
0
votes
2answers
54 views

NGINX redirecting subdomains to main domain

I have 2 websites running on my server, a Wordpress site and a web-app running on port 8080. I want to point mysite.com and www.mysite.com to the Wordpress site and app.mysite.com to point to the ...
1
vote
0answers
26 views

NGINX Proxy and Wordpress [closed]

I have been working on a NGINX proxy for A/B testing. This box has a virtualhost that keeps the corporate site, and aditionally I added another virtualhost that should redirect incoming traffic to a ...
0
votes
1answer
42 views

Nginx upstream https not proxing other pages

Having odd situation, even don't know how to search in google, how to describe it...Anyway I'm using Nginx and proxy'ing https traffic to upstream server. Everything is fine with http (with others ...
0
votes
0answers
23 views

Nginx to capture url

In Nginx, we can capture client header using $http_name. I was told to use $http_referer to read the url. However, I read that $http_referer is not reliable. Our javascript application's url contains ...
1
vote
1answer
130 views

PHP7 + OpenSSL-1.0.2h on CentOS 7 [Nginx 1.11.1]

Since yesterday, I've applied OpenSSL-1.0.2h to my Nginx server, which I both recompiled from source. For the OpenSSL part, I've followed this guide: https://syslint.com/blog/tutorial/how-to-upgrade-...
1
vote
0answers
29 views

Serve Flask applications like PHP scripts

On most webserver configurations, .php files are automatically processed when a user accesses a php file, using php-fpm. I'd like to do a similar thing for Flask apps on my nginx server, so that when ...
0
votes
0answers
23 views

Nginx returning 404 even though it executes a PHP script which returns http 200

I have a Laravel application (PHP) which when hits a specific URL: /media/1920/1080/565a2f1b4dad50.89312442_a1247a009b30f83db379b4d84ed13132565a2f1b4db019.92277002.jpg Which loads an image from a ...
0
votes
0answers
10 views

Can Proxy-Authentication be used with Nginx?

I can not seem to find resources about setting up Nginx to use Proxy-Authentication header as source of authentication. Is it even possible ? Nginx is setup to proxy to an App that is already using ...
0
votes
1answer
54 views

nginx downloads php instead of processing it

I have been trying to make a simple alias in nginx and the furtherest I could get is to get the server to send me the file. When I visit /xhprof_html in my browser the server asks me to download the ...
0
votes
2answers
37 views

Nginx working with SSL but Private Key mismatch error

Used to work I bought a Rapid SSL from name.com and used the below command to generate the .csr and .key files: sudo openssl req -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/server.key -...
-1
votes
1answer
35 views

What permissions should I give to CA Bundle file? [duplicate]

Hi I setup an ssl certificate using godaddy and read the following article: Best location for SSL certificate and private keys on Ubuntu. I am trying to protect an aws ubuntu gitlab instance that uses ...
-1
votes
1answer
42 views

How do I install nginx on Ubuntu 16.04 so that I can have upstream config files

I use ubuntu 16.04. I have removed nginx config $ sudo rm -rvf /etc/nginx/ purged nginx and installed it again # apt-get remove --purge nginx # apt install nginx aptitude shows nginx installed ...
0
votes
0answers
36 views

Running Seafile behind Caddy reverse proxy

I'm trying to move over from nginx proxy to caddy, and seafile is running fine but they are requiring a separate proxy for /seafhttp to allow uploads through the web interface. Below is a working ...
0
votes
1answer
48 views

trying to diagnose weird nginx 110 connection timeout error somehow related to redirection

I'm trying to diagnose server timeouts on ubuntu 16.04. I've seen this site http://blogs.candoerz.com/question/161218/cannot-figure-out-nginx--puma-timeout-110-connection-timed-out.aspx and ...