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
2answers
27 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
23 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
25 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
40 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 ...
0
votes
0answers
14 views

Change the root folder in a ubuntu server, using nginx with serverpilot [duplicate]

Right now there is a ubuntu server using amazon EC2 and serverpilot to build. The web files structure is like this: 1) /srv/users/serverpilot/apps/**site_a**/public/wp-content .. 2) /srv/users/...
0
votes
1answer
32 views

configure nginx log_format in sites-enabled

I have a log_format configuration I want to enable. The thing is that our installation adds a file to sites-enabled (or conf.d) in the nginx directory and we don't touch nginx.conf itself I want to ...
-2
votes
0answers
16 views

A proxied site is not being served properly by nginx

I've recently been running several sites behind nginx. A have a basic nginx configuration... user www-data; worker_processes 1; error_log /var/log/nginx/error.log; pid /run/nginx.pid; ...
1
vote
2answers
31 views

PHP parse error syntax error, unexpected end of file

I keep getting this error when i was on a LEMP setup nginx 1.10/PHP 7 and i thought it was because of PHP 7 and now i setup a new server with nginx 1.4.6/PHP 5.5.9 2016/06/19 15:45:18 [error] 4094#0: ...
0
votes
0answers
14 views

nginx.conf for limit_req based on http header?

The following requirements must be fulfilled: (1) No limitation for http request with a specific header. (2) With limitation for http request without a specific header.   e.g. curl -H 'X-Api-Key:...
1
vote
1answer
89 views

Every website on the server redirects to a foreign page, even after clean install

First of all, this is my first time posting here, so sorry if I posted in the wrong section. To get to the point: I have a CentOS 7 + Gnome server, with VestaCP configured and running 2 WordPress ...
0
votes
1answer
18 views

Custom domain name and wildcard DNS

I have a web application that uses subdomains for user profiles (ex. noodles.example.com). I have a wildcard DNS configured in Nginx. Everything is working fine with that. How would a user be able to ...
0
votes
3answers
77 views

Drupal 8 Nginx error No such file or directory for any routes

I'm running Drupal 8.1.2 on a Docker image of Nginx + PHP7 + PHP 7 FPM and it's linked to another Docker image of PostgreSQL both of them based from Alpine Linux. After successfully running Drupal ...
0
votes
2answers
40 views

Nginx wordpress cannot upload files on CentOS 6.8

I kept getting this error when I upload a photo to my site. Unable to create directory wp-content/uploads/2016/06 The configures are like this . For /etc/nginx/conf.d/default.conf server { ...
-1
votes
0answers
11 views

nginx: Difference between ssl_session_cache in http and server block

3 server blocks, 1 http block: Is there a difference if I create a shared cache in the http block or put the following line in all three server blocks: ssl_session_cache shared:SSL:10m;
0
votes
0answers
19 views

LDAPs calls fail through PHP installed on Nginx Server

I have PHP running on an Nginx Server and I want to make calls to my Active Directory over LDAPs. Calls over LDAP run just fine, but LDAPs poses some connection errors. I have ensured that LDAPs works ...
0
votes
1answer
27 views

nginx redirect / to /v2/

i have an nginx location defined like that: location / { alias /usr/share/nginx/myapp/dist/; gzip_static on; # Media: images, icons and fonts location ~* \.(?:jpg|...
0
votes
1answer
34 views

How can I set HTTP status code reason phrases in nginx

The reason phrases of HTTP responses that accompany a status code are not fixed. Instead of returning 200 OK it would be legal to return 200 Everything fine. nginx has predefined reason phrases for ...
0
votes
1answer
27 views

ELB nginx - redirect loop

I have nodejs app (which works fine locally) behind nginx with following configuration : 00_elastic_beanstalk_proxy.conf upstream nodejs { server 127.0.0.1:8081; keepalive 256; } server { ...
-1
votes
1answer
40 views

POP3 and SMTP over port 80 [closed]

TL;DR I need connect mail clients over port 80. I have a requirement to allow to mail clients connect to my mail provider over port 80. Some users of my company works in clients workplace. In some ...
0
votes
0answers
26 views

Optimized setup to run AngularJS + Symfony

What are the best practices to run an AngularJS + Symfony application? I have experience working with nginx + Google PageSpeed on WordPress sites. It can optimize static files, do cache-control and ...
0
votes
1answer
43 views

Irresponsive nginx while doing “nginx reload”

While reloading nginx, I started getting errors in messages log "possible SYN flooding on port 443", and it seems like nginx becomes completely irresponsive at that time (quite for a while), cause ...
0
votes
0answers
13 views

How to determine maximum concurrent requests that a server configuration can handle? [duplicate]

I want to buy a used server, but I don't know how to select the best one according to my needs. I have millions of static files, all of them are html, css, js and images, and are under 1MB is size. ...
0
votes
0answers
22 views

Nginx: How to determine if a module is installed

Im using nginx as load balancer in a dockerized setup. Im trying to get the http_geoip_module up and running so I can redirect traffic based on users geographical position. Question: The command ...
0
votes
0answers
36 views

log complete response data in string format in nginx

Is it possible to log complete response in nginx. I tried below approach suggested in other threads(Is it possible to log the response data in nginx access log?) but its logging the response in byte ...
0
votes
1answer
64 views

Server crash (504 gateway timeout) with 100 concurrent users, using nginx and php5-fpm

We have a VPS server which is dedicated to a single website. Day to day it seems to work fine (say 20-50 concurrent users) but as soon as we get up to around 90+ concurrent users, the server starts to ...
0
votes
0answers
24 views

Django Permission Denied on Socket File

I'm trying to setup Django to run via NGINX on a Centos 7 server, however I seem to be encountering a non-stop barrage or problems. The main one that I am encountering now is that NGINX is giving me a ...
0
votes
0answers
29 views

NGINX rewrite dynamic url

I configure NGINX proxy cache for Atlassian Confluence And i faced a problem of caching the edited pages Some time after editing the pages do not show the changes(cache TTL) I decided to force the ...
1
vote
1answer
32 views

Allow SELinux, Nginx to read local file and make outbound connection

I am a new admin to a server which uses CentOS 7, nginix and php-fpm. There is a web form that needs to read a local file (prod.pem) and then make an outbound connection to either: gateway.push....
0
votes
0answers
40 views

Nginx if cookie exists set expires

In the nginx default config file how can i set different "expires" time in the header whether a specific cookie name exists or not. I tried with if but it doesn't work as it's "ifevil". This is what i ...
0
votes
1answer
43 views

Docker how to Django + uwsgi/gunicorn + nginx?

I can't get my head around on what's the "correct" way to deploy a Django project that uses uwsgi/gunicorn (I haven't decide yet what to use, probably uwsgi since it has better performances, ...
0
votes
1answer
54 views

Using mod_rewrite on Ubuntu 14.04 to hide port and folders

I have an AWS EC2 instance and I'm trying to point two different URLs to that same instance. I am using NGINX (port 80) for a Ruby server and APACHE2 (port 8080) for a WordPress server. I configured ...
2
votes
0answers
85 views

google load balancer + nginx + symfony2

i'm trying to configure a scalable symfony2 app, so i read this page https://cloud.google.com/compute/docs/load-balancing/http/cross-region-example i did every thing like they said, is working with a ...
0
votes
0answers
18 views

phpMyAdmin reCaptcha error allow_url_fopen=0

I've got phpMyAdmin running on Nginx. I also enabled reCaptcha $cfg['CaptchaLoginPublicKey'] = 'secretkey' and $cfg['CaptchaLoginPrivateKey'] = secretkey'. I added the above to config.inc.php. As you ...
1
vote
1answer
41 views

HTTP connections are fast from local network, very slow from the outside world

I setup a Wordpress server in a Raspberry Pi with nginx, MariaDB and ufw. I also setup the No-IP service. When I access the server from my local network (192.168.0.173) I get a fast response but when ...
0
votes
1answer
21 views

nginx tries opening logs in /var even when I direct logs elsewhere

I'm trying to run nginx as a non-privileged user--specifically, my usual login ID. I find that I cannot start nginx successfully, since it insists on trying to open log files in /var/log/nginx/, even ...
0
votes
0answers
26 views

nginx rewrite everything that ends with / to index.html

I need to configure nginx to send everything that ends with / to /index.html. If it doesn't end with / then I want to show the file, for example I would want to show /img/asdf.jpg but I would want /...
0
votes
0answers
11 views

netstats shows my own server is hitting a server its not supposed to know about

ON AWS I have a few dedicated servers that do image processing and they seem to get high traffic and fail. when running netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n I ...
0
votes
0answers
22 views

nginx proxy serve url with port instead of url only

Try to use nginx as proxy to serve some containers. Unfortunately my site only work with the port... So i create two container: container A : nginx container B : nginx + php My IP is xx.xxx.xx.xx ...
0
votes
1answer
28 views

nginx connect to socket failed no file or directory with django and uwsgi

I am trying to deploy a django web app using nginx and uwsgi using this tutorial : Digital Ocean. I followed the tutorial step by step and these are my configuration files: /etc/uwsgi/sites/picknbox....
0
votes
1answer
41 views

about do-release-upgrade on ubuntu server lts

i'm working on a cloud server running Ubuntu Server 12.04 LTS and i was wondering to know what happen if i do a do-release-upgrade to the new stable version Ubuntu Server 14.04.3 LTS. Since i'm ...
1
vote
1answer
48 views

Nginx is not passing the request on to PHP

This is related to an old question I asked on SO years ago, for which I never got a proper answer. I'm just setting up a new server (Ubuntu 16.04, Nginx 1.10, PHP 7) and coming back to this. I have a ...