nginx is an open-source Web server and a reverse proxy for HTTP, SMTP, POP3 and IMAP protocols, aimed at high performance and low memory usage.

learn more… | top users | synonyms

3
votes
0answers
71 views

How can I perform an “alias” with nginx?

I am using the default nginx config for localhost, which translates requests to http://localhost to files in /home/velour/www. That's all working normal. Now I am trying to translate requests to ...
3
votes
0answers
750 views

NGINX Reverse Proxy - no user/password was provided for basic authentication

I've got Nginx set up on a RPi (raspbian)as a reverse proxy using SSL between the remote user and the Nginx instance. All seems to work well for two services mounted on the RPi (Shellinabox and RPi ...
3
votes
0answers
801 views

VirtualBox guest machine as a nginx host

I have VirtualBox 4.3.12 with Fedora 20 and nginx 1.4.7 installed. Machine has Bridged Network interface and pings can be done both ways: from host machine (Windows 7) using ping 192.168.0.15 (...
3
votes
0answers
341 views

Creating a signed subordinate CA for client certificates

I have a root self-signed CA which I've created for myself. With this CA (we'll call it country), I've created a server certificate and key for my webserver, nginx. I now would like to create a ...
2
votes
0answers
23 views

How to configure NGINX as a reverse proxy for different port numbers?

I have NGINX configured like this as a reverse proxy for http requests: server { listen 80; server_name 203.0.113.2; proxy_set_header X-Real-IP $remote_addr; # pass on ...
2
votes
0answers
35 views

Nginx with dnsmasq 'could not be resolved (5: Operation refused)'

I'm trying to set up a django site using docker, nginx and uwsgi: I have a nginx docker container working as a reverse proxy (called ceca-nginx-proxy) and another nginx (ceca-nginx) container that ...
2
votes
0answers
152 views

munin phpfpm plugin

I have setup PHP-FPM plugin All graphs works except three PHP5-FPM Average Process Size PHP5-FPM Memory Usage PHP5-FPM Processes setup /etc/munin/plugin-conf.d/munin-node [phpfpm_*] env.url ...
2
votes
0answers
44 views

How to share common configurations amongst Nginx server blocks?

Hosting multiple sites with the same Nginx, and a lot of them share common configurations. Such as protection against POODLE and even entire sets of redirects. I tried using the include directive but ...
2
votes
0answers
125 views

some cyrillic file names got broken after moving from server to server

I moved my website from one server to another and encounter a problem with cyrillic filenames. Some cyrillic URLs in wordpress are fine and some are now broken. It used to be OK on previous server. ...
2
votes
0answers
323 views

Nginx on Debian 8 dev setup. PHP via PHP FPM not working

UPDATE: Ok, I can now happily say that what you see below is the recipe for a happily working automated PHP and Nginx dev setup (with automatic domains) and all problems I had are now solved. I ...
2
votes
0answers
936 views

SimpleSAMLphp, Nginx, Ubuntu 14.04

My setup Ubuntu 14.04 LTS 64-bit Nginx SimpleSAMLphp 1.13.2 My Nginx server block: server { listen 80; listen [::]:80; root /var/www/sso/html; index index.php index.html index....
2
votes
0answers
2k views

nginx: [emerg] “server” directive is not allowed here

I get the following error message when trying to configure server: []# nginx -s reload nginx: [emerg] "server" directive is not allowed here in /etc/nginx/conf.d/hello-world.conf:1 Configuration is ...
2
votes
0answers
138 views

bonding multiple proxy connection

I want to use multiple proxy servers at the same time to speed my downloads. Reverse proxy products such as haproxy and nginx can use multiple proxy servers, but only one proxy per session. Client---...
2
votes
0answers
449 views

File uploads and max_execution_time and request_terminate_timeout

In case of HTTP file uploads (nginx+php5-fpm) does max_execution_time (in /etc/php5/fpm/php.ini) or request_terminate_timeout (in /etc/php5/fpm/pool.d/www.conf) also include the time the file took to ...
2
votes
0answers
547 views

Is there a way to mix between two RTMP streams (depending on which is up) using something like FFMPEG?

(Apologies about the question title, not quite sure how to word it) So I'm working on a turnkey streaming solution / server for a local LAN party, using the fantastic nginx-rtmp to handle incoming ...
2
votes
0answers
1k views

Nginx Owncloud 4 produces “No input file specified.”

I'm trying to setup an Owncloud 4 instance with nginx as a webserver. The host device is a Raspberry Pi with preinstalled Debian 6. When I try to open the URL to the Owncloud installation in a browser,...
1
vote
0answers
12 views

gitweb nginx with root url path

I have a very strange problem: I configure a nginx server with server { listen unix:/home/ingo/repositories/run/gitweb.nginx; server_name _; access_log /home/ingo/repositories/log/proxy....
1
vote
0answers
47 views

ModSecurity is defaulting to index.html on POST

I am trying to implement ModSecurity and I have this in nginx location / { ModSecurityEnabled on; ModSecurityConfig /etc/nginx/modsecurity/modsecurity.conf; index index.php; ...
1
vote
0answers
22 views

Sudden problem with a rack/passenger ruby app: “Connection closed”

I have a Ruby 1.8.7 app which runs under Phusion Passenger and Nginx, for one of my clients, on an Ubuntu VPS. It's been ticking away happily for years, but yesterday ran out of log space (sending me ...
1
vote
0answers
24 views

About second-level domain names corresponding to nginx server blocks

There are 2 second-level domain names and 2 corresponding folders, like this: domain name folder 111.aa.com /var/www/111.aa.com 222.aa.com /var/www/222.aa.com In nginx.conf,there are ...
1
vote
0answers
224 views

Permissions on nginx log files

I have a PHP/nginx environment on OS X which is deployed to an Ubuntu server. On OS X, nginx is set up with Homebrew, thus my user ("joe") owns the files, whereas on Ubuntu nginx is installed with ...
1
vote
0answers
104 views

Memory Leak trackdown

I have a server running Red Hat Enterprise Linux Server release 6.7. The server runs a number of java processes including a tomcat server with nginx webserver. The server has 12 GB of ram allocated ...
1
vote
0answers
117 views

Hosting Dovecot and Postfix Behind nginx?

So I'm looking at setting up postfix and dovecot on a server that is currently hosting some web-sites via nginx, and I've stumbled upon the mail {} configuration option for nginx, but I'm having a ...
1
vote
0answers
284 views

Can't run php cli at webuser but will run as root

I am running a Magento application on a Nginx server. nginx + php-fpm running as webuser:www There are some function in the shell directory of Magento which run fine as root and the import run fine ...
1
vote
0answers
116 views

nginx serves info.php but doesnt serves index.php

info.php with basic phpinfo() is served when I enter info.php in the url, however index.php is not being served. I tweaked around some changes reading different answers on stackexchange `try_files $...
1
vote
0answers
40 views

nginx returning netstring with wrong length?

I installed nginx (nginx version: nginx/1.7.9) via macports on my mac running the latest OSX. I configured a URI to use SCGI: location /server { include /Users/ruipacheco/Projects/Assorted/nginx/...
1
vote
0answers
345 views

NGINX multiple locaton block matching

I have a RaspberryPi with Raspbian and I want that a public www-folder is protected by htpasswd and that php files are passed correcly and the .htpasswd and .db files are denied to all. But this does ...
1
vote
0answers
172 views

How to configure nginx to dynamically read folders, user accounts/domains?

I have cPanel and Apache 2.4 on my CentOS 6.6 VPS. I installed Nginx as a reverse proxy. Everything works fine. I have 2 domains on the VPS & I'm able to configure them both on nginx. The ...
1
vote
0answers
125 views

Webserver on Solaris 10 + zones. How to do it properly?

I have 1 real IP and many websites. Initial idea was to separate each website into it's own exclusive-ip (vnic) non-global zone. MySQL server have it's own non-global zone. Question is: what is the ...
1
vote
0answers
144 views

Nginx wordpress and its wrong path

I've a Raspberry and I installed nginx and over this I put Wordpress. Wordpress installation come from an old backup of a websites that I hosted somewhere else. The URL was mydomain.com/home, now in ...
1
vote
0answers
464 views

Startup commands in /etc/rc.local won't work

I have a Python program and an nginx/uwsgi/django web setup. I want the program to start with the system, as well as the web server. Here's my /etc/rc.local: crawler_dir=/home/mohammed/git/crawler ...
1
vote
0answers
492 views

Redirect loop with Nginx as reverse proxy and Yii

I've been reading another similar issues and changing some things in my Nginx configuration, but no one worked :/ When I'm trying to access to a specific page at my site, it leads me to a "redirect ...
1
vote
0answers
212 views

Export and import ssl certificate from cpanel to self manage hosting

I have moved my server from cpanel managed hosting to nginx-centos server. I have only command line to manage my server. I need to export and import the ssl certificate. All the tutorials that I have ...
1
vote
0answers
40 views

Very strange issue, something is blocking specific links on local domain

I have a very strange issue and I ran out of ideas. The major problem is that the symptoms are not consistent. I have a short link website hosted on 2 virtual machines, one with nginx+php-fpm and one ...
1
vote
0answers
152 views

Fail2ban for nginx post flood ignores time intervals

I'm trying to create a fail2ban filter that is going to ban the host when it sends over 100 POST requests over 30 seconds interval. jail.local: [nginx-postflood] enabled = false filter = nginx-...
1
vote
0answers
636 views

Improving TCP performance over a gigabit network

I have two machines both network cards speed is 10Gbps. The inbound bandwidth between the two machines is 10Gbps, the outbound bandwidth internet bandwidth is 500Mpbs. Both machines are using public ...
0
votes
0answers
15 views

Nginx Reverse Proxy setup

I currently have a few hundred web applications spread across around 20 servers, and a reverse proxy sat in front of these running Pound and Haproxy. Pound is doing the http to https redirect and SSL ...
0
votes
0answers
14 views

Nginx proxy pass configuration for deluge webui

I would like to configure nginx so that it pass request to the deluge web server from '/' not '/deluge'. I have no idea where is the web root of the deluge webui, I cannot find this information ...
0
votes
0answers
7 views

Git + Nginx - Is it safe to have https auth for cloning and pushing to repo, while remove any auth from gitweb block?

I have following nginx configuration on Ubuntu 14.04 to use together with git httpd backend and gitweb to anonymous browse of repo and push/clone with authentication. Is it safe to use such or I ...
0
votes
0answers
24 views

Route requests over interface

I have a raspberry pi setup for a few different things at home. Mainly it is my dns server and it is also a small webserver providing a reverse proxy to my internal camera system. I recently changed ...
0
votes
0answers
26 views

Why is a 'Trusted Network' Port More Secure?

I'm working through this tutorial ATM. http://www.cyberciti.biz/tips/using-nginx-as-reverse-proxy.html I'm planning on using NGINX for a simpler scenario but I'm curious as to why the tutorial ...
0
votes
0answers
18 views

zopfli --i1000 all css, js files in a directory and sub directorys

My servers OS is CentOS, with Nginx. I've enabled Gzip_Static_Module for nginx. Now after update of a website I need to gzip all the js, css files. Is there a way to search a dir like /home/user/...
0
votes
0answers
47 views

Installing nginx from source error

OS is centos 7.2,installing nginx from source error: sslv2conftest.c: In function 'main': sslv2conftest.c:217:15: warning: 'currtest' may be used uninitialized in this function [-Wmaybe-uninitialized]...
0
votes
0answers
30 views

where is nginx.lock file?

I am using centos 7.2,and I installed nginx 1.9.14 form source, wget -c http://nginx.org/download/nginx-1.9.14.tar.gz tar zxf nginx-1.9.14.tar.gz wget -O nginx-ct.zip -c https://github.com/...
0
votes
0answers
26 views

NGINX and PHP Pools

We host quite a few client sites, and I've inherited a shared hosting ecosystem on DigitalOcean. We run a LEMP stack, and all sites were at the same permission access level as eachother. We are now ...
0
votes
0answers
30 views

Nginx + CentOS 6 + OpenSSL Library - Update System Version

CentOS 6 I'm running Nginx which is built with an earlier version of OpenSSL: Note: my linux skills aren't so strong with this kinda stuff so any advise or direction would be greatly appreciated. ...
0
votes
0answers
16 views

How to serve apache2 www sub directories from nginx while the domain does not change

I'm using nginx and apache on the same Ubuntu machine. nginx is using port 8080 apache2 is using port 8081 I want to serve directory from /var/www/directory with domain www.domain.com but I do not ...
0
votes
0answers
34 views

nginx start failed. reason: Cannot expand template file

I have problem with zimbra nginx when I restart it Starting proxy...Failed. Starting nginx...nginx: [emerg] could not build the server_names_hash, you should increase either ...
0
votes
0answers
92 views

uwsgi , application not found

Ok so I have been trying to find a solution to this for 2 days now but I cannot seem to make much progress. I am running this on a nginx server but that appears to be fine. I copied over a python ...
0
votes
0answers
270 views

Installation of nginx on Ubuntu 15.10 gives “Inappropriate ioctl for device”

I just installed ubuntu 15.10 in a container on my machine and want to install nginx. I run an apt-get update, and then sudo apt-get install nginx and I get an error message saying Inappropriate ioctl ...