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

0
votes
0answers
2 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
6 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
6 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 ...
0
votes
1answer
6 views

Running Seafile with Nginx, Plesk and SSL [on hold]

I have troubles to run Seafile in combination with Plesk, Nginx and SSL. The installation is completed and Seafile runs great with Nginx - but if I set SSL in ccnet.conf and seahub_settings.py, no ...
-2
votes
1answer
25 views

Reduce server response time error [on hold]

So i have stacked totally... so i have VPS server Fedora-20 64bit, AMD Opteron(tm) Processor 6380 (2300 MHz), 2gb Ram, ssd disk, nginx frontend apache backend. Google speed test shows "Reduce server ...
0
votes
1answer
16 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
17 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)....
-1
votes
0answers
18 views

web server (apache2, nginx) stopping sporadically

I am running a wordpress website on a small vps of 512 MB RAM running Debian 8.1. According to WP statistics, the website has had 400 visitors making 3000 total visits in the last 30 days. In the ...
2
votes
3answers
33 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
35 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
0answers
18 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
20 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
22 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
29 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 ...
0
votes
1answer
32 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
19 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
14 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
24 views

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

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
26 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
25 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
2answers
42 views

Programmatically set HTTP response header

I have some web pages that will respond differently based on the request from the client. Anything from a 200 to a 301 to a 404 and so on. I used to do this with Apache and CGI by just sending it in ...
0
votes
1answer
15 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 ...
-1
votes
1answer
20 views

How to setup NGINX to store multiple sites on the same domain? [on hold]

I have domain exampledomain.com with NGINX, it works. I have folder for static HTML/CSS/JS projects (SPA or MPA): /home/user/www. This folder contains 2 subfolders: project1 and project2. I want that ...
0
votes
2answers
28 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
24 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 ...
0
votes
0answers
9 views

Searching for generic reverse proxy solution with build in letsencrypt support [closed]

Currently we are using a Sophos UTM as a gateway for our corporate network. Since we have several web sites running on multiple local machines but only one public IP we a using a feature which allows ...
1
vote
0answers
16 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 ...
-2
votes
0answers
16 views

Nginix only shows welcome page [closed]

My vps server was running, but no longer works. My sites are down, I'd appreciate some help getting it fixed. /etc/nginx/nginx.conf user www-data; worker_processes 4; pid /run/nginx.pid; events { ...
0
votes
0answers
17 views

Server migration with the shortest possible downtime [closed]

If it was the same network and localization I'd simply do: 1. set up new server with nginx, ruby, rails and passenger 2. set up postgres data replication with new server as master 3. a) if load ...
0
votes
1answer
36 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
21 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
53 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
24 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
19 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
42 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
26 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
32 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
22 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
14 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
38 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 ...
0
votes
0answers
13 views

Visualise Nginx's location block parsing during development?

Is there a way to visualise how Nginx is interpreting Location blocks? This is for during development and not for production. I was wondering if there is a specialised module for getting access to ...
0
votes
1answer
16 views

nginx try_files addheader doesnt work

I have simple location used for server-generated caches: location /api/get-hloc { #add acccess-allow headers add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-...
1
vote
0answers
20 views

How do you properly deploy Angular application?

I'm writing an angular2 application, and want to deploy it on an EC2 instance. This is how I've currently set it up. Used gulp on the server to build typescript and scss. Then I setup nginx to setup ...
0
votes
1answer
27 views

Using map and the evil “if”

I would like to know if my config is acceptable since I'm using the evil "if". I read this - https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/ map $http_app_code $app_code { ...
1
vote
0answers
38 views

How do I correctly configure nginx to work with rails on Ubuntu 16.04 on digital ocean

I have decided to install latest ubuntu 16.04 system on the site I manage and it was a chain of disasters. I had problems with mysql server that I'm not sure are completely fixed, because sometimes I ...
0
votes
1answer
36 views

Two different deployments on nginx

I have two applications that I need to serve using the same nginx server. The first one should run under help.example.com. The other one, has a domain for each customer, like foo.example.com and bar....
0
votes
0answers
11 views

Nginx: public website and anywhere access vpn routing

I have a nginx server with a https site hosted on it. In my network I also have windows anywhere access running (VPN, RDP ,xyz.remoteaccess.com etc). How do I setup nginx to allow the public to view ...
0
votes
2answers
39 views

Turn on Gzip for combined JS or CSS files without file extension

I'm trying to configure GZip on my nginx server. It works for files with an file-extension. To make a decision what kind of file is served over the network, Nginx does not analyze the file ...
-1
votes
0answers
18 views

Firefox is not opening none of my apps (WP, Laravel) [closed]

I have 2 apps in my server, A Classic Wordpress One Page site: https://kendozone.com, and a Laravel 5 app : https://my.kendozone.com Weird thing is I can't open them in Firefox. Fact that both ...