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
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
82 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
74 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
39 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
18 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 ...
-4
votes
0answers
19 views

Content download time always larger than connection time [closed]

I've tweaked nginx settings for a while, and just realized that the content download time probably always is larger than the connection time. Am I correct in that assumption? Thank you.
0
votes
1answer
26 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
39 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
25 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
41 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
21 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
33 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
60 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
23 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
26 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
37 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
0answers
35 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
49 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
84 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
15 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
40 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 ...
1
vote
0answers
10 views

How to use XSL to make a href using XML data [migrated]

I'm trying to create an XML file that shows different news articles within an iframe. A shortened version of the news' body is shown as a subtitle (which is already prewritten and chosen with the help ...
0
votes
1answer
23 views

Apache ReadmeName for NGINX?

When using autoindex on; in NGINX, is it possible to show a readme.txt file right under the directory listing? Apache does it with the ReadmeName option.
0
votes
0answers
58 views

Nginx add path to url

i am using nginx web server for my wordpress website. i am going to make it to become amp version for mobile serve. i wanna add /amp/ to my url. i also using pretty permalink for my current url,so ...
1
vote
1answer
31 views

Prevent default server or wildcard in nginx

I have two domains: staging.abc.com and www.example.com pointing to the same server IP in my DNS. I don't have a site enabled/available for staging.abc.com, but I have one for www.example.com. However,...
0
votes
0answers
9 views

502 Gateway trying to use Sentry with Forge + Nginx

I'm trying to install Sentry but I it appears that I have a nginx config issue. I am not an expert configuring servers, so, I don't really know how to debug it. I tried using the default config as ...
0
votes
0answers
18 views

Nginx not reverse-proxying to NodeJS for one domain

it's probably a fairly lame question, however I can't seem to get this one going and I can't see why. I have 2 websites reverse-proxying from Nginx to NodeJS with almost identical configuration, ...
0
votes
0answers
43 views

Nginx in reverse-proxy : Content-length mismatch for bigger CSS files

I have a web application (developped with the java framework Play) behind a nginx reverse-proxy. When I request the pages, the bigger CSS files (Bootstrap.min.css and easyui.css) don't load. Chrome ...
0
votes
1answer
71 views
+50

Postfix(admin), Dovecot, MySQL: Aliases not working

I'm able to send mail to the mailboxes i've setup with postfixadmin. This is working correctly and i can send and deliver mail on them. But now i'm in need of Aliases to work properly as well. I've ...
0
votes
1answer
54 views

How can I run nginx as an SSL reverse proxy and a web server simultaneously?

My SSL reverse proxy works fine but I can't figure out how to make nginx work as both an SSL proxy and web server for one PHP directory simultaneously. server { listen 10.0.0.20:80; ...
0
votes
1answer
39 views

Nginx alias not working

I'm trying to pass all traffic at location ^/[a-z0-9]{24}$to index.html at a different root directory. I have my config set up like so: server { listen 80; server_name example.com; return ...
0
votes
0answers
19 views

Multiple Nginx Error Log Locations

I'm trying to get Nginx to log both in a log file and to stderr. The reasoning behind this is that I want Nginx to log to a log file as well as to journald. From the research and tests I've done I ...
0
votes
0answers
62 views

nginx proxy cache mp4 streaming

Sorry for my question, the schema like this: there are upstream which is a IIS server where locates video files. my nginx is an proxy caching server, I need to cache mp4 file when client starts ...
0
votes
1answer
34 views

nginx Rewrite for CImage Cache

I'm setting up a script (http://dbwebb.se/opensource/cimage) to do some image processing and I'd like to cache the resulting image output. I have that part working fine. The problem I'm running into ...
2
votes
1answer
38 views

Custom status code for Nginx default page

I only have experience with upstreams in Nginx, not the serving of static files. Nginx has a default server which serves a Welcome to nginx! page and shows up when there is no match on the virtual ...
0
votes
1answer
47 views

SYN flooding on port 443 while 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
22 views

nginx proxy pass without redirect

Hi i'm struggling with this issue for some time all examples I found don't work. I want to proxy a video on a remote server. This video is a stream so not a actual file; I was thinking something ...