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
1answer
26 views

Nginx HTTP not working - downloads a file called “download”

if I visit my nginx site with https it is working, but with http it is downloading a file called "download" (no extension whatsoever), 57 bytes and opening it with notepad etc just shows gibberish ...
0
votes
0answers
22 views

Two domains on one IP, added a subdomain and different domain's SSL gets protocol error

I've been running two domains on one IP for years using SSL. One is example.com and the other is other.com. example.com has three names with its SSL cert; example.com, www.example.com and ...
2
votes
1answer
27 views

Does nginx really need dac_override in its AppArmor policy?

I am building an AppArmor policy for nginx in Ubuntu 14.04 and I cannot make it work without enabling the dac_override capability. Does nginx really need this enabled or is there some way to work ...
0
votes
0answers
8 views

Nginx and Ghost issue on a DigitalOcean droplet with older snapshot

I have looked across several forums and StackExchange questions but I'm truly at a loss here as to why this is not working. I was running a Ghost.org blog on a Digital Ocean droplet and had ...
0
votes
2answers
50 views

nginx check if filename with different extension exists

If a file with ".html" extension doesn't exist I need to know if the same file exists with ".th.html" extension and make a redirect. Right now on 404 I'm doing a rewrite and if $request_filename ...
1
vote
1answer
7k views

Redirect loop using cloudflare's Flexible ssl

I am trying to implement Flexible SSL provided by CloudFlare to my site. Here is my nginx config: # PHP-FPM upstream; change it accordingly to your local config! upstream php-fpm { server ...
0
votes
1answer
34 views

Nginx, proxy_cache and badly behaving app (wordpress)

I've been fighting with configuring Nginx as a reverse proxy. I've got most of the mechanics working, but I've been fighting for the last 3 days to control cache headers and being newbie to nginx this ...
0
votes
1answer
21 views

What is this strange nginx running on 8088?

I recently made a nmap scan to my server, and I discovered that there was some strange instance of nginx running on port 8088. 8088/tcp open http nginx 1.0.11 | http-methods: |_ ...
1
vote
1answer
2k views

Unable to install nginx from source in provisioning script

I'm using Vagrant to build a reproducible virtual machine for one of my projects. This virtual machine needs a basic LEMP stack, and I'm using a shell script to provision it after it's created. The ...
0
votes
0answers
13 views

Magento2 Varnish + Nginx (SSL not caching)

I move the question on serverfault instead of Magento (https://magento.stackexchange.com/questions/117075/m2-varnish-nginx-ssl-not-caching) since I consider this topic more on server side ...
4
votes
1answer
1k views

How to enable certain SSL cipher while having disabled the group?

I would like to enable the SSL cipher EDH-DSS-DES-CBC3-SHA (also known as TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA) in my nginx SSL environment to support IE8 on Windows XP. The base SSL ciphers for nginx ...
0
votes
1answer
82 views

Setting up nginx and php-fpm on CentOS 7 - which config file do I alter? I'm so lost

I'm intermediate with Ubuntu and Apache, but a total noob to CentOS. I want to setup a 1 CPU 1 GB RAM test VPS for a phpbb 3.1 forum, and I'm following this tutorial: How To Install Linux, Nginx, ...
0
votes
0answers
5 views

uwsgi does not create PID file

I have the following ini file under /etc/uwsgi/apps-enabled/ cat /etc/uwsgi/apps-enabled/live.ini [uwsgi] uid = www-data gid = www-data socket = /opt/sockets/live.sock master = true processes = 4 ...
2
votes
1answer
5k views

How to get the equivalent of Apache's Alias “/foo” /path/to/foo working in nginx

I'm trying to configure nginx in front of HHVM to serve up an API which has a landing page listing available versions at / and the actual installed API versions at /api/[version]/. My nginx config so ...
2
votes
1answer
2k views

Static file permissions with Nginx, Gunicorn and Django

I attempting to setup a Nginx server up with a Gunicorn WSGI server running Django behind.. The setup all seems to runs except i have a permissions issue. I have setup aliases to /media and a /static ...
2
votes
2answers
2k views

Nginx reverse proxy to another nginx server serving static files

I have an Nginx server hosting a web app which works fine when directly accessed. Its config is below server { listen 8000 default_server; listen [::]:8000 default_server ...
0
votes
1answer
14 views

Why does docker pull from private Docker registry using nginx SSL reverse proxy work on registry host, but not remote host?

Why does docker pull from a private Docker registry using an nginx SSL reverse proxy work on registry host, but not remote host? Successful docker pull From registry host: ...
5
votes
2answers
5k views

Allow only local users in nginx

I want to restrict the access for some VHosts so that only 127.0.0.1 can access it. I always used something like this to bind the VHost to the localhost and not the external IP: server { listen ...
0
votes
1answer
48 views

phpMyAdmin on CentOS 7 with NGINX returns blank page

I have installed CentOS 7 in Virtual Machine with NGINX. PHP, MariaDB and everything else is installed and working fine. However, when I access the http://localhost/phpMyAdmin it shows blank page. ...
0
votes
2answers
9k views

nginx rewrite rule to convert URL segments to query string parameters

I'm setting up an nginx server for the first time, and having some trouble getting the rewrite rules right for nginx. The Apache rules we used were: See if it's a real file or directory, if so, ...
0
votes
2answers
26 views

Disable Cloudlfare SSL on nginx to use certificate

I use Nginx to host a wordpress site which is configured to use exclusively SSL. A while ago, I activated the Strict SSL option and the HSTS option from Cloudflare. Now I want to disable it and only ...
1
vote
1answer
16 views

GoAccess date/time/log format error

When running GoAccess with my Nginx log file I'm getting this error: Fatal error has occurred Error occured at: src/goaccess.c - main - 1017 Nothing valid to process. Verify your date/time/log ...
0
votes
1answer
26 views

How to get nixos configuration.nix to configure nginx?

In my configuration.nix, it says services.nginx.enable=true; services.nginx.httpConfig="a"; (I tried a normal file and empty string and neither worked) upon running nixos-rebuild switch, it says ...
3
votes
2answers
47 views

Nginx subdomain SSL certs

I have a site that needs to answer on any number of arbitrary subdomains, e.g. client1.example.com, client2.example.com, etc. Everything is behind SSL. I'd really like to use Let's Encrypt which, of ...
0
votes
2answers
32 views

How do i configure nginx to use part of a URL as a header?

I am trying to get a server application running which supports multiple customers. They should each access the app with their own URL, e.g. http://localhost:8082/customer1/config, but the application ...
0
votes
1answer
28 views

Nginx upstream never flagged as down in vts status

We have 2 physical server which are basically identical (for load balancing and failover) One physical server consist of a bunch of docker containers including 1 x NginX 2 x WebSphere 8.5.5.8 ...
0
votes
1answer
40 views

Nginx only recognises files in root dir (Permission denied on symlink'ed dir/files)

UPDATE -- This is driving me nuts (or back to Apache...) The issue is definitely symlinks and permissions When I setup symlinks to directories in the same tree, for example /var/www/html/html2 --> ...
0
votes
1answer
2k views

Unicorn master failed to start error

I want to start unicorn, but it prints master failed to start, check stderr log for details And when I check logs nothing there. All settings with NGINX is OK! Because I work with it. But today it ...
2
votes
1answer
30 views

How to properly refuse ssl connections to subdomains that don't have a certificate

I'm currently setting up a (semi-serious) server with nginx for the first time. I have a couple of domains and subdomains and want to use SSL as much as possible to keep the traffic to and from my ...
0
votes
2answers
43 views

How can I distribute clients to servers evenly with hash_ip in Nginx as loadbalancer?

I know Nginx can use hash_ip to tie specific clients to a server. My question is when Nginx is hashing with client IP, does it distribute clients to servers evenly regardless of whatever client IP is ...
0
votes
3answers
2k views

Zero downtime deployment (Tomcat), Nginx or HAProxy, behind hardware LB - how to “starve” old server?

Currently we have the following setup. Hardware Load Balancer (LB) Box A running Tomcat on 8080 (TA) Box B running Tomcat on 8080 (TB) TA and TB are running behind LB. For now it's pretty ...
0
votes
1answer
21 views

Single front NGINX to proxy pass SSL to sites with their own certificates

Current setup: Front NGINX proxy passes 80 and 443 to local VM Local VM's NGINX redirects everything to HTTPS (if request is HTTP/80) Local VM's NGINX listens to 443 and proxy passes to the upstream ...
1
vote
2answers
4k views

Serve a fastcgi through nginx

I have a "hello world" fastcgi running on 127.0.0.1:9000 and would like to serve it via nginx. I added the following lines to the nginx.conf http block: server { listen public.ip.address.here:80; ...
0
votes
1answer
33 views

Pass host from nginx to rsyslog

I have a cluster of nginx web servers and a separate syslog server running rsyslog. The nginx vhost looks like this: access_log syslog:server=10.0.0.51,facility=local1,severity=info combined; ...
1
vote
1answer
27 views

Nginx reverse proxy in docker container - wrong IP logged

I am running Nginx in a Docker container as a reverse proxy using the configuration below. It basically redirects the request to another docker container running on the same machine Problem The ...
0
votes
1answer
30 views

How to config nginx as sticky loadbalancer for both http and https

I have the config below. However, when user switch from http to https, the session doesn't stick no more. Eg. homepage http but payment page is https. How do I solve this? upstream backend { ...
0
votes
2answers
1k views

nginx node.js & socket.io 504 timeout

Nginx config server { listen *:80; server_name live.domain.com; server_tokens off; charset utf-8; error_log /var/log/nginx/live-error.log info; ...
0
votes
0answers
57 views

Rundom Facebook og: tags not found - operation timeout

I have a vps (Centos 7.2 64bit/CPanel/5GB Dedi Ram & 2GB Boost/CPU i7 2900-3.4ghz(4 Cores)/200GB Disk) with apache 2.4 and nginx 1.10.0, and I have set up wp multisite(subdomains) 4.5.2 with WP ...
1
vote
1answer
11 views

Websocket proxy with nginx: Error about POST request in server log, but works in browser

The situation I am running Etherpad, which is proxied via nginx. Etherpad uses Websockets with Socket.io. My nginx config is more or less this one. The location block for socket.io is this: rewrite ...
-2
votes
2answers
21 views

Nginx config not redirecting

I have my nginx config and I am trying to redirect from a non www. version of the site to the www. version. server { listen 80; server_name *.example.com example.com; rewrite ^ ...
0
votes
0answers
27 views

Fail2ban 0.9.3 not working on centos7.2

I'm really struggling with this. The default [sshd] jail works fine. Status for the jail: sshd |- Filter | |- Currently failed: 0 | |- Total failed: 0 | `- File list: /var/log/secure `- Actions ...
1
vote
2answers
2k views

Another PHP NGINX error: “No input file specified”

I looked through about 5 questions and blog posts already and tried everything they told me without luck. I can browse to www.example.com/phpinfo.php, but not www.example.com/index.php. I even went so ...
0
votes
0answers
12 views

set log level for 404'ed requests in nginx

I am analyzing my server log via journalctl: journalctl --since '24 hours ago' -p err and there are a lot of error messages from nginx for the simple reason that someone requested an ...
-1
votes
0answers
19 views

How to configure Nginx and apache2 to run together on windows? [on hold]

I want to run Nginx as a reverse proxy to serve my static files faster and Apache will be handling the backend, running my php scripts. I have a Windows 10 PC with apache installed and running ...
0
votes
0answers
34 views

Site unreachable due to attack - xmlrpc.php

Today our server was not reachable. It was returning a 502. We are running Nginx 1.10 on Ubuntu 14.04. We also use PHP7 (only, no PHP5). In the logs, we got the same error from the same client (2 ...
1
vote
1answer
2k views

How to properly use nginx echo support to respond with a 504 inline page?

I am trying to reply with a custom 504 page by using nginx echo support but for some strange reason when this is active the browser downloads the response instead of opening it. server { ...
0
votes
1answer
35 views

Nginx - subdomains to Apache, index to WP

I am trying to deploy our new Wordpress (with Apache2 in Docker) one-pager over our existing setup. Right below the LB we have an Nginx server that terminates SSL and proxies plain HTTP requests to ...
-1
votes
0answers
8 views

How does my browser know to refresh when I start nginx? [migrated]

This just happened: Pointed Chrome to my domain where no server is running, but the DNS points to my linode's IP I started a nginx server on my linode To my astonishment, the Chrome window ...
1
vote
1answer
63 views

Configuring nginx reverse proxy to send TCP keep alive packets to server

We have IIS servers in Azure behind load balancer. Load balancer has unconfigurable timeout of 4 minutes after which inactive connection is killed. We're trying to setup nginx as a reverse proxy to ...
1
vote
1answer
31 views

how set separate log file, to log 400 bad request errors in nginx

I have a nginx to host a django application. I need to log 400 Bad Request errors from my web page to a separate log file in nginx configuration. The docs I found was to give separate response in ...