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

Ubuntu server, nginx, uwsgi, django: *nginx is not running

I am following this tutorial to set up Django on an nginx server. I have made it to the Basic nginx part successfully. When I run sudo /etc/init.d/nginx start I get no complaints. The tutorial ...
1
vote
1answer
19 views

Nginx too many open files DDOS

Im having an issue with ddos at the moment. My web server is behind a reverse-proxy (cloudflare), which I know shouldn't be relied on with their free plan. Cloudflare is in under-attack-mode, which ...
0
votes
0answers
9 views

Nginx giving 404 error for WordPress' /wp-admin/ root

I'm using the following nginx block to route mysite.com/blog to my /var/www/mysite/wordpress/ directory: location /blog { root /var/www/mysite/wordpress; rewrite ^/blog/(.+)$ /$1 break; ...
0
votes
0answers
6 views

Nginx: create a “virtual directory” accessible by https://server.ip/DIR

I would like to access my PhpMyAdmin install via https://ip.add.re.ss/PMA which is a "virtual directory". My install is here: /var/www/phpmyadmin/www/. If I go to the address above, it just shows a ...
0
votes
1answer
12 views

Server Aliases on NGINX

I'm moving a site to a new server running on NGINX. The old site's Apache2 VirtualHost has ServerAlias configured that I want to replicate in the NGINX configuration. From what I've read on the ...
0
votes
1answer
11 views

How to intercept fastcgi errors conditionally in nginx?

I want to set directive fastcgi_intercept_errors on only when my $request_uri is in some particular format. Here is what I did, if ($request_uri ~* /a/b/c){ error_page 502 @static; ...
2
votes
2answers
32 views

nginx multiple sites, redirecting by URL

Let's say I have several web UI sites used to monitor backend services. I would like to make them accessible from the web (secured by Auth) but ideally bundled under one sub-domain, and accessible ...
0
votes
1answer
22 views

Redirect respecting port in the host header?

I'm often working with tunneled ports where I'll SSH forward a remote port 80 to a local port 8080. One of the interesting problems I run into is that when I have a rule like this in NGINX: rewrite ...
0
votes
1answer
16 views

How to modify $uri to part of uri from request_uri in nginx?

Suppose the value of $request_uri is /a/b/c . The current value of $uri is /index.php . Is this possible to change my $uri to /b/c . I have tried this, which doesn't seem to be working, if ...
0
votes
0answers
11 views

How to start passenger nginx, error : Signal received. Gracefully shutting down… (send signal 2 more time(s) to force shutdown)

Application is broken in production mode and getting below error while restarting passenger and nginx. [ agents/LoggingAgent/Main.cpp:338 ]: Signal received. Gracefully shutting down... (send signal ...
0
votes
1answer
13 views

Error requesting -fPIC when compiling nginx with custom OpenSSL [on hold]

Update: Disregard, I have decided not to force an OpenSSL update, so this question is irrelevant. Thanks. Question copied from Github issue here. I am trying to compile a custom version of OpenSSL ...
0
votes
0answers
19 views

Migration from nginx to haproxy

I am trying to migrate existing app written in Go from nginx to HA-Proxy version 1.5.14 2015/07/02 on Ubuntu 12.04. nginx/haproxy runs behind F5 load balancer. My config: ...
0
votes
1answer
30 views

Migrating from nginx to Amazon ELB

I'm interested in migrating from a manually managed AWS EC2 cloud with multiple webapps to AWS ELB with auto scalling. However, I'm not sure whether a single ELB will be enough to handle my ...
-1
votes
0answers
14 views

uwsgi and nginx not working properly

These are my configuration files for uwsgi and nginx but when running lsof /path/flask.sock I get nothing. Nothing's connected to the socket and I get 504 Gateway Timeout error. flask.ini: [uwsgi] ...
1
vote
0answers
27 views

Gitlab redirect loop when requesting archive.zip

I've set up a Gitlab instance using nginx as the web server on an Arch machine. The steps I've taken to do so are on the Arch Wiki. Everything is working at present apart from the download archive.zip ...
-1
votes
1answer
13 views

Default directory for nginx?

I have ubuntu 15.04. After searching i found a variety of links that suggest the default directory for for nginx is /usr/share/nginx/html. It looks like that directory was created and there was ...
0
votes
0answers
13 views

Is it possible to return a String as an nginx error page from a reverse proxy?

I'm looking for a way to serve up a static message from nginx if an upstreams section returns certain HTTP codes. I understand that I could use static pages and ask NGINX to serve these up, but this ...
0
votes
1answer
28 views

Configuring Nginx to use 1 PHP script for all URLs

This must be covered somewhere but I am having trouble finding it. I have a script named user.php which I want to be available at a bunch of urls, like so: http://example.com/user/john ...
0
votes
0answers
13 views

PHP Cannot Write to Directory the Process User Owns (Fedora LEMP)

I am having a permission issue with PHP running on a Fedora 22 LEMP install. PHP cannot write to a directory owned by user 'nginx' in the group 'nginx' with permissions of '744'. The PHP FPM socket ...
0
votes
0answers
10 views

looking for index.php while proxy_pass to s3 bucket

I am configuring my nginx proxy server to fetch data from s3 bucket in case of 502 error. This is my configuration file. error_page 502 @static; location @static{ rewrite ^/a/b /a_b break; ...
1
vote
1answer
14 views

Varnish with separate backends and multiple domains on each backend

I'm using 3 nginx servers with multiple domains(sites) on each. Each server contains multiple Wordpress sites. Is it possible to configure Varnish and use separate backends (different IP's) and each ...
0
votes
1answer
24 views

http and https with 2 different domains in a single nginx server

I am using nginx in my aws server and hosting 2 ruby on rails apps there. HTTPS is enable in one of my server (example.com is below example file) and other server is on HTTP (test.com). Now the ...
0
votes
0answers
11 views

Nginx - block referrer to certain directory

I'm trying to return 403 on a referrer, but only if they've tried to access a certain directory So far I've tried: location ~* /dir/.*. { if ($http_referer ~* (domain) ) { return 403; } ...
1
vote
1answer
29 views

Match … character in rewrite rule with nginx

I have a problem, where someone has added a link to our site - but its getting cut off. I'm seeing in the log file, as: /info-cry%E2%80%A6 Seeing as I know what that is mean't to be going to, I'm ...
0
votes
0answers
22 views

nginx module to send a message when a server is down [duplicate]

I'm using nginx as a load balancer for few http servers (nodejs mostly). I was wondering if anyone here knows a module (or a way) for nginx to inform (preferably http/s but email is also ok) that one ...
-1
votes
1answer
17 views

How to allocate bandwidth for specific process

I have nginx php server with Debian OS on my production VPS , the problem is that nginx eats all of my bandwidth. When I try to upload something using ftp, the connection times out most of the times. ...
0
votes
1answer
15 views

Nginx load balancer shows wrong site on failover server

I have five websites and I have three servers, all running nginx. Primary server Load balancer Failover server Each website has it's own primary server but they all share the same failover ...
0
votes
1answer
23 views

NGINX + SSL certificate securing the connection in some browsers only

I've been strugling with this issue and I seem to be running into a dead end here without knowing what to do next... I've taken a task left by another worker who left on vacation. He was trying to ...
0
votes
1answer
17 views

Docker volume not working with Nginx

I've created a simple Docker container with Nginx inside and for some reason, it won't access the www volume data from the host. Here is the command I used: docker run \ -d \ -p 8080:80 \ ...
1
vote
0answers
17 views

Nginx can't speak with uwsgi (prematurely closed connection)

What I'm missing in my nginx/uwsgi/php-embed configuration? rpm -qa|grep php php-cli-5.4.16-36.el7_1.x86_64 php-xml-5.4.16-36.el7_1.x86_64 php-devel-5.4.16-36.el7_1.x86_64 ...
0
votes
0answers
25 views

add user for ssh and accept uplaod file , nginx + centos

I just install nginx on CentOS 6.5 try to move all old project write in php and NodeJS, from Apache to this. goal: website admin upload folder and file through ssh accept user upload file in ...
0
votes
0answers
11 views

cached response always buffered on disk nginx

I'm using nginx as reverse proxy, and it also use cache (proxy_cache) and buffering (proxy_buffering) at the same time. I've set proxy_buffers to really high value (proxy_buffers 256 64k;) but nginx ...
-4
votes
0answers
16 views

LEMP Setup on CentOS at DigitalOcean [on hold]

I'm following this tutorial. I got some issues start from step four: Configure Nginx to Process PHP Pages. After I typed this $ sudo vi /etc/nginx/conf.d/default.conf. I can't find server { listen ...
-2
votes
0answers
14 views

how to make php scripts executable instead of downloadable using nginx

Recently I set up a virtual machine through vagrant and I'm using nginx as a web server. The OS I'm using for the VM is Ubuntu Linux 12.04. The problem is that any script I write in PHP gets ...
0
votes
0answers
9 views

nginx naxsi $URL_X doesn't work

Recently recompiled my NGINX with a NAXSI module. Now setting up the white lists but the $URL_X functionality doesn't seem to work at all. Generating Incorrect line BasicRule wl:1312 in NGINX ...
1
vote
1answer
36 views

404 when serving static files with docker+nginx+django/angularjs

I'm following the configuration given at this repository. I decided to keep my docker configuration and actual code in separate repositories - I'd clone the code repo using the Dockerfile. I'm using a ...
0
votes
0answers
17 views

How to implement multi-server user file uploads set up? (nginx + django) [on hold]

I'd like to build two-server configuration, one is django app server, and the other is file storing\processing server. I'd like to save files uploaded by users directly to the file server. I've ...
-1
votes
0answers
12 views

How configure rights for nginx access_log file?

I want to allow owners of site to clear log files but nginx create log files with "0644 root:root" permitions. Can I change this behaviour? UPD The nginx server runs under rights of this user. Also ...
-1
votes
0answers
10 views

where is naxsi api documentations? [on hold]

there is over 10 python files under naxsi (nginx WAF) api folder that supposed to be tools for generating white lists, but there is no documentation for setting up these tools is there anybody who ...
0
votes
0answers
13 views

nginx http -> https redirect adding extra comma with the host name

I have a server that should always serve https and I try to make nginx automatically redirect from http to https. reading other questions on this subject here, I wrote the following config: server { ...
0
votes
1answer
22 views

Serving my index.html file directly from nginx in socketio proxy

My current nginx.conf file looks like this. upstream socket_nodes { ip_hash; server 127.0.0.1:8080; server 127.0.0.1:8080; server 127.0.0.1:8080; server 127.0.0.1:8080; } server ...
1
vote
1answer
21 views

Can't start nginx: “code=exited, status=1/FAILURE”

I've just installed nginx on Debian Jessie, and I can't start it: $ sudo /etc/init.d/nginx start [....] Starting nginx (via systemctl): nginx.serviceJob for nginx.service failed. See 'systemctl ...
0
votes
1answer
13 views

Rewrite subdomains in Nginx

Because I don't want to use CDN anymore I would like to rewrite cdn.example.com to www.example.com. How to do this with Nginx? There is only www.example.com in my server block.
0
votes
2answers
25 views

Is it necessary to use nginx server to use with tomcat

Is it necessary to install nginx server before using apache tomcat. Can we use only apache tomcat is there any pros cons which choice is better and why. I am using fedora 22 for deploying my ...
-1
votes
0answers
48 views

NGINX: rewrite, proxy and cache a folder

I am new to NGINX and need to know how to do this in a special location (folder) remove all query parameters proxy request to another server cache the result locally for x minutes Config snippet: ...
1
vote
1answer
21 views

Nginx confing to github pages and home page

I am trying to configure Nginx to use a domain like proxy pass to github pages, and also to have a landing page on the root domain. With this configuration the proxy to githubpages work fine, but if ...
-2
votes
3answers
50 views

Not able to find /etc/nginx/sites-enabled/default [on hold]

I have installed Nginx server at my cloud space checked by ip it is showing proper page. Now I have also a apache Tomcat8 on port 8080 I want to redirect my port 80 traffic to 8080 for that I am ...
0
votes
2answers
32 views

NGINX rewrite 2 adresses to same destination

I am looking to rewrite 2 different addresses to the same destination address. Is it possible to do something like this? location = /foo/bar/, /to/fu/ { return 301 /re/bar/; } Or do I have to ...
0
votes
0answers
16 views

Nginx, SSL and websockets on different port

I user Nginx as a server proxy and use it with SSL connections for whole website. All is fine, except I do not know how I can add for this websockets. I found some info on internet and with it ...
0
votes
1answer
18 views

Nginx doesn't start Passenger/Nodejs

I cannot get Passenger to start my Nodejs (iojs) application on restarting nginx. I've followed the tutorials and installed the prerequisites: $ nginx -V nginx version: nginx/1.8.0 configure ...