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
7 views

firewalld connection throttling

I'm hosting a web site on Cent OS 7 with nginx. I have a page that needs to make about 26 http requests on load, they are all pretty much in the same second. What I noticed is that always about 2-3 ...
-1
votes
1answer
29 views

Understanding nginx log statement

I need some help in understanding following log statement found in /var/log/nginx/error log file. 2016/07/28 14:06:05 [error] 7255#7255: *712 open() "/usr/share/www/proj/check_proxy" failed (2: No ...
0
votes
0answers
8 views

Why does NGinx send content in a HTTP 304 response when If-None-Match / If-Modified-Since is a match?

My default NGinx installation is returning a 304 Not Modified response to a request which has a matching If-None-Match header and a non-expired If-Modified-Since header which is correct behaviour but ...
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 ...
0
votes
0answers
16 views

Folder Permisson for cache folders Centos7 and nginx 1.10

I have a server on which I install Centos 7.2 and nginx 1.10. I would like zo host Magento What I have done: root user is disabled newuser is admin user for doing stuffs with sudo I have a new ...
2
votes
2answers
493 views

nginx split large configuration file

My nginx default configuration file is becoming huge. I'd like to split it to smaller config files, each including only one, maximum 4 locations to each file, so that I can enable/disable them quickly....
1
vote
3answers
2k views

403 Forbidden nginx (nginx/1.8.0)

I've just got a new server in DigitalOcean and want to try some other things. I want to start a wordpress site so I follow the first 1-3 steps from here: https://deliciousbrains.com/hosting-wordpress-...
2
votes
1answer
2k views

redmine gives 404 error after installation

I am using Debian squeeze with nginx and mysql. After raking db and loading default data to redmine. When i try to visit redmine in a browser, http://ipaddress:8080/redmine, I get a 404 error Page ...
0
votes
0answers
19 views

Gateway Timeout with PHP,NGINX and Laravel

I'm using a Godaddy VPS with Nginx, PHP and Laravel installed on Ubuntu 14.04, I have page where I'm sending request to Paypal REST API, that works on my local machine and the response is returned ...
0
votes
0answers
15 views

nginx Reverse Proxy with plesk

I've already seen some answers on here and none of the solutions seem to work. I have domain.com with a wordpress install and a script running on domain.com:6000 I want to be able to have script....
-2
votes
0answers
12 views

nginx + font awesome +tomcat [on hold]

Recetly I started to use nginx it's so useful but also cost me so much time dealing the font awesome here is the issue 1.I can start tomcat and deploy my project and the fontawesome icon will ...
0
votes
1answer
19 views

Deployment of node js app listening on two separate ports under nginx

I have a simple node.js app that listens to two ports: on 8001 it sets up a simple webserver by doing var express = require('express'); var gHttpApp = express(); gHttpApp.use(express.static('public'))...
0
votes
0answers
12 views

How to increase php-fpm processes on Plesk [on hold]

We have a VPS hosting account running Plesk 12.5 on CentOS 7. When we're loading testing the VPS it only runs 5 php-fpm processes (as shown by top). There are 24 cores on this VPS and overall CPU ...
0
votes
1answer
33 views

“SSL_ERROR_INTERNAL_ERROR_ALERT” Using Let's Encrypt & Nginx

I've been running my Nginx web server for almost a week and all of the sudden, it started throwing this error (using HTTPS only) & redirecting to /defaultsite when using HTTP. The website link is ...
-1
votes
1answer
25 views

nginx proxy_pass using subfolder

ok, this task should be simple but I just can't get it to work. I would like to have a subfolder after my domain name (actually after the IP of that domain name), which redirects to a specific port on ...
0
votes
1answer
15 views

Nginx conf with php-fpm alias not working

i cant get the kohana aplication working. Server specs: ubuntu 14.04, nginx, php7.0-fpm I have the following structure: build: (static website) ,server: (php-kohana application) |-- build | |-- ...
1
vote
1answer
30 views

Trying not to use 'if' in NginX, but how?

I read that if is evil and should not be used in NginX config. But how can I rewrite my code, so that I don't use the if ? What I want to do is: NginX are supposed to call Redis instead of php if ...
0
votes
1answer
1k views

nginx reverse proxy with basic_auth - 404 Not found

I have an nginx server block to proxy_pass content from three servers: gitlab, Rshiny and static content from another nginx server block. All this works fine, until I try to add password protection to ...
0
votes
0answers
12 views

New nginx + phpfpm installation causes PHP files to download

I just finished installing Nginx and PHP-FPM using the steps in guide here. However, the test PHP info page seems to be downloading instead of showing up on the browser. Here's what the config looks ...
0
votes
0answers
32 views

nginx server root returns 404 on port 80

My server only returns a 404 error, regardless of the configuration that I do. File: /etc/nginx/sites-available/name.​net server { listen 80; listen [::]:80; root /home/...
0
votes
2answers
1k views

nginx php5-fpm path_info urls and root location

Hello to all nginx & php gurus I'm installing dotclear (a blogging software written in PHP) on my debian, and I have a hard time configuring nginx, php5-fpm and php so that : I can use ...
2
votes
1answer
688 views

Roundcube, upload fail

I have Roundcube installed on Ubuntu 14.04, using NGINX, with static IP, SpamAssassin, ClamAV . Sending/receiving email was fine including downloads, however cannot upload anything to send. ...
0
votes
1answer
19 views

Configuring Nginx to serve a UWSGI app from a location under a nodejs server block

I have a UWSGI Django API running which is configured like this in NGINX: upstream django_api { ...
0
votes
1answer
179 views

nginx PHP files downloading instead of executing

I'm trying to achieve following thing. I've main website under domain root directory. It's working fine. i.e PHP files are executed. After some time I've added "auth" directory with basic HTTP ...
0
votes
0answers
11 views

PHP_FPM port no changes after service php-fpm restart on server

I have 2-3 websites running on Nginx PHP-FPM configuration on a server. I have assigned a unique port to each website in Nginx and Php-fpm configuration as below. In Nginx Vhost conf : location ~ \....
1
vote
1answer
34 views

Session files are created every 2 second. Running on openshift Laravel PHP nginx haproxy

What causes the access on the server when the server starts? I've run rhc tail on my app to monitor the new logs. Here is my log http://laravel.io/bin/Dez4o When I started the app using rhc app-...
8
votes
3answers
2k views

Deploying Django App with Nginx, Apache, mod_wsgi

I have a django app which can run locally using the standard development environment. I want to now move this to EC2 for production. The django documentation suggests running with apache and ...
0
votes
1answer
24 views

Configure Nginx to add subfolder

I have an running nginx instance with the below config. Right now, this is resolving to the root URL of the server. How do I change the config so that it resolved to http://serverIP/FolderName ...
1
vote
2answers
35 views

Nginx not spawning both ipv4 and ipv6 workers

Later edit After a LOT of troubleshooting the actual issue turned out to be a missing semicolon after the server_name directive. nginx -t -c /etc/nginx/nginx.conf wasn't catching it. Double-check for ...
0
votes
1answer
21 views

nginx url redirection without file paths

I'm trying to set up nginx to let the name node of a Hadoop based cluster that I set up effectively redirect to the different user interfaces surrounding Hadoop based off of the file extension on the ...
-1
votes
1answer
27 views

MongoDB active status failed

My server running on Nginx Ubuntu 16.04 LTS. I want to install mongoDB to use it with node.js then I followed this tutorial but when I write the status command I have this. ● mongodb.service - High-...
0
votes
3answers
2k views

Nginx proxy pass and url rewriting

How to trig this rule only when I have parameters in url, otherwise I will match on an alias. location ~^/static/photos/.* { rewrite ^/static/photos/(.*)$ /DynamicPhotoQualitySwitch/photos/$1 ...
0
votes
0answers
12 views

Nginx / uWSGI / Python / Django cookie whitelisting

I have a Django application on a subdomain myapp.domain.com. There is another application I don't have any control over on badapp.domain.com that is setting malformed cookies. Is there a way in ...
-1
votes
1answer
21 views

Nginx rewrite url from :port to “login”

Good evening I am new to nginx i read around and am a bit confused between redirecting and rewrite what i am looking for is a way to change www.abc.com:3000 to www.abc.com/login location /login { ...
0
votes
0answers
18 views

Value in only allowing access to backend from specifc IPs

I have a Load Balancer in front of several nginx web servers. I want to lock down my web servers as much as possible so I've added this to the http block in my nginx.conf: allow {...
1
vote
2answers
48 views

How do I 301 redirect 80 -> 443 in a development environment with no domain?

I'm trying to setup an nginx config that behaves similar to our production servers in which requests to port 80 get redirected to 443, it works fine when working straight off the dev machine you're ...
0
votes
0answers
10 views

Nginx secure pseudo streaming with “start” args

After reading through some of the posts here and realising that Nginx does not match ARGS in rewrite location rules, I started to search for a solution on getting secure_link to work with "start" ...
4
votes
2answers
4k views

How to follow HTTP redirects inside nginx?

I have an nginx-based HTTP proxy and I would like to process all HTTP redirects inside it so that clients get only the last response in the redirect chain. The basic code looks like: location /proxy ...
0
votes
1answer
1k views

UWSGI Bad Gateway - Connection refused while connecting to upstream

Trying to get a basic Django app running on nginx using UWSGI. I keep getting a 502 error with the error in the subject line. I am doing all of this as root, which I know is bad practice, but I am ...
0
votes
1answer
1k views

stopping fastcgi_cache for php-enabled custom error page

Since enabling the fastcgi_cache on my nginx server, my php-enabled custom error page has suddenly stopped working and I'm getting the internal 404 message instead. In nginx.conf: fastcgi_cache_path ...
-2
votes
2answers
34 views

How to set an IP address in server_name directive, not a domain name?

For some reason NGINX doesn't work if I set a bare IP address in server_name directive: server { listen 80; server_name xx.xx.xxx.xx; # doesn't work server { listen 80; server_name ...
0
votes
3answers
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; ...
2
votes
3answers
618 views

Nginx hangs using “service nginx start”

I've compiled nginx with custom paths for my production server and when I try to start/restart the service using: service nginx start or service nginx restart It enters a new line without ...
2
votes
3answers
1k views

How to install reviewboard with nginx?

Does anyone how to install reviewboard with nginx? It currently only has docs for apache and lighty. Thanks
6
votes
3answers
2k views

Debian jessie nginx with openssl 1.0.2 to use ALPN rather than NPN

I am running debian jessie on my server and recently upgraded to new nginx web server with http/2 support (nginx 1.10). As today, it works great and webserver is delivering content with http2 protocol....
0
votes
1answer
422 views

Wiring uWSGI to work with Django and nginx on Ubuntu 16.04

I am trying to follow this tutorial to setup uWSGI with Django and nginx on Ubuntu16.04. It all works fine up until the very last step (oh the irony...) where I try to execute this command: sudo ...
0
votes
3answers
5k views

corosync + pacemaker + nginx

I have been trying to configure and implement corosync + pacemaker + nginx to my vbox to create a High-Availability set-up between web servers. But can't find an exact tutorial on how to make it work ...
0
votes
0answers
21 views

How to access remote user name in nginx?

Please help, I have a RoR application running on RedHat 6.6 with Nginx as webserver and Passenger as application server. Now i need to implement SSO with windows authentication, i.e if a user has ...
0
votes
0answers
11 views

New Jenkins instance running on kubernetes in google cloud; Setting up security through Jenkins breaks it

I set up a new instance of Jenkins in the gcloud via these instructions: https://github.com/GoogleCloudPlatform/kube-jenkins-imager#quick-deploy I followed the details to get SSL set up using a ...
0
votes
0answers
13 views

Nginx do strange 301 redirect

I have fresh installation of Nginx. It should just serve static files like pdf and images. But then I trying open the site by domain name in the first response I get 301 redirect and it point on real ...