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

4
votes
2answers
9k views

How to uninstall nginx (installed from source)?

I want to switch from a development version to a stable one. I installed nginx from source with: ./configure make sudo make install I tried sudo make uninstall but it doesnt work. How can I ...
4
votes
1answer
104 views

How to create a git repo using Nginx?

I've a CentOS 5 server at domain.fr. I am trying to set a subdomain so that I can use it with git : git.domain.fr My repositories are in /home/git (example /home/git/repos.git) I've installed ...
3
votes
1answer
82 views

What code runs when I type “sudo service nginx start”

I am having this problem: http://stackoverflow.com/questions/10939072/add-nginx-as-a-ubuntu-service-stop-and-reload-doesnt-work I am trying to understand if my code to start nginx is point to the ...
3
votes
1answer
387 views

PID file not accessible after update of nginx

After I removed the version 0.7.x which was delivered by the Debian standard packages, I installed the version 1.4.1 of nginx by source. It is possible to start nginx with service nginx start and I ...
3
votes
3answers
2k views

How to host an intranet website inaccessible outside the LAN?

I am a Linux/Unix noob, so please bear with me. Here is my situation: I have a server (Debian Squeeze) on a LAN. I have installed Nginx web server on it. The server has Internet access to download ...
3
votes
0answers
57 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 ...
3
votes
1answer
1k views

Why am I getting a Non-existent class error in PHP on Fedora?

I've set up an Nginx/PHP (both installed from Yum) environment on my Fedora 15 install, but I've run into a strange issue. I have some projects that use Codeigniter (1.6), but they keep getting the ...
2
votes
1answer
2k views

Port Mirroring using iptables - copy all traffic among nginx on :80 and apache on :8080

I have nginx running on port 80 and apache running on port 8080 I want to transfer all the traffic to both nginx and apache asynchronously i.e the performance of one server wont be dependent on the ...
2
votes
1answer
30 views

Nginx not available from localhost, but available by network

Have server with installed nginx and php-fpm. Some sctript need access to part of site via curl. But it fails. I tried to run curl on server : curl -v -i alexcoder.info * About to connect() to ...
2
votes
1answer
368 views

Specifying virtualenv correctly in uwsgi.conf

I am trying to get a uwsgi environment working correctly on Arch, to run my Flask application from a virtualenv. I have installed uwsgi, nginx and virtualenv and these all work to a point. However I ...
2
votes
1answer
1k views

Nginx Configuration - Cache headers on certain paths

From my understanding of nginx docs, locations can't be nested (or rather if they are the effects aren't inheritable) and proxy_pass can't belong at the server {} level. So my configuration at the ...
2
votes
1answer
57 views

What does this code really do?

I am testing iThemes security plugin for Wordpress. It adds the following code: # Rules to help reduce spam location /wp-comments-post.php { valid_referers ...
2
votes
1answer
123 views

How to build nginx on Ubuntu with cache_purge module?

I have been trying to rebuild nginx with cache_purge module from here. I did the following and somehow the new build doesn't seem to include the module: Installed nginx Stopped it Installed build ...
2
votes
1answer
152 views

nginx php-fpm index.php doesn't load

I have a quite simple setup with nginx and php-fpm, howsoever when I try to access my website with my-website.com I get a 403 forbidden error, If I access my-website.com/index.php everything works ...
2
votes
1answer
29 views

Internal Server Error nginx

I'm trying to install and get running Tendenci on a DigitalOcean server. Tendenci is this open source association management software: http://tendenci.com/ I've followed the instructions here to the ...
2
votes
0answers
36 views

Why does't stopping the nginx server kill the processes associated with it?

When I stop nginx like this on ubuntu 12.04, I get the following errors: $ sudo service nginx stop Stopping nginx: nginx. $sudo service nginx start Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 ...
2
votes
0answers
901 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 ...
2
votes
1answer
657 views

Debian + Nginx/Unicorn permissions

Is there a security risk in running a web server like Unicorn as root? The Nginx master process runs as root, the Nginx worker runs as the limited www-data user, but I can't set another user like ...
1
vote
2answers
106 views

How to “listen” to nginx writes to a file socket

I'm trying to get uwsgi and nginx to play nice. After moving to "file sockets" (hopefully I'm using the right terminology here) from TCP sockets, the only thing I get from uwsgi is a 400 with no ...
1
vote
1answer
420 views

Troubles with unresolved dependencies on Debian 6 Sqeeze

I'm working with a VirtualBox 4.2.14 VM and Debian 6 Sqeeze as guest system and trying to (re-)install Nginx, but it's not working: root@devmv:~# apt-get install nginx Reading package lists... Done ...
1
vote
2answers
36 views

PHP+FastCGI+nginx on Debian

I new with Debian. I want to use php on Debian. I do: apt-get install php5-cli php5-cgi spawn-fcgi Create file /usr/bin/php-fastcgi: #! /bin/sh PHP_FCGI_CHILDREN=3 PHP_FCGI_MAX_REQUESTS=1000 exec ...
1
vote
1answer
68 views

Granting permission for all users in a group to write to a directory and all its subdirectories

Trying out Linode for the first time, running an Arch Linux image, I successfully installed nginx as root. This, however, made /usr/share/nginx/html inaccessible to non-root users. Intuitively, I ...
1
vote
1answer
314 views

AES-GCM 256bit for SSL on nginx

Does an option exist for AES-GCM 256bit encryption for SSL connections with nginx? If so, how can I configure this as the only cipher used with my server? (I'm hardening my router, so requiring the ...
1
vote
1answer
295 views

Nginx with ngx_pagespeed (Ubuntu)

I need to install nginx with ngx_pagespeed. I use this instruction: https://github.com/pagespeed/ngx_pagespeed#how-to-build But when I finish installation, nginx file here: ...
1
vote
2answers
549 views

nagios w/o apache?

I want to install nagios but instead of using apache i would like to use nginx. I installed nagios-cli and it automatically brings parts of apache which puts a script into /etc/init.d/apache2 and ...
1
vote
1answer
221 views

nginx + php5-fpm doesn't work properly. I see a white screen only

I've just installed nginx and php5-fpm and I wanna test it on port 82. So I call http://mysite.com:82/test555.php and I see nothing. Just a white screen. No errors, no warnings, I don't see nothing at ...
1
vote
1answer
79 views

How to properly setup web server directory permissions

I'm lost with this, hopefully I can find some help here: I have Ubuntu 12.04 LTS webserver. For example I have user "myuser". There is a public directory which is my web root. I chowned it and all ...
1
vote
1answer
64 views

Weird memory spikes in Debian VPS

I run a medium VPS (4GB RAM) as a web server. I host some private Ruby on Rails sites with Apache and mod_passenger. I also have two legacy apps which run with "passenger standalone" (two Nginx ...
1
vote
1answer
51 views

compiling nginx shell fails from salt provisioner

I have a salt provisioner that is calling a shell script to compile Nginx with a few modules that are needed. This is the call to the script in the .sls: nginx: # pkg.installed: # - name: nginx ...
1
vote
1answer
151 views

HAProxy should not forward an incoming request to down instance

In my scenario, I have 2 servers, both are communicating with HAProxy. When a request comes in, HAProxy splits the request and sends it to both servers, following a round robin method. If in any case ...
1
vote
2answers
454 views

Nginx + PHP + FTP - user permission issue

I have a wordpress copy installed on /home/username/public_html/site, and now the problem is : Nginx running PHP with "www-data" identity The site folder owner and group are "username", not ...
1
vote
1answer
219 views

mirror a site with wget that only response with gzip

I'm trying to mirror a site but the server only responses with gzip pages so wget won't recurse. I've searched around and there are some references to a patch to add gzip support to wget however they ...
1
vote
1answer
240 views

nginx + php5-fpm + htdocs on USB

None of the configurations that I've looked up can help with setting up Nginx to serve PHP files on a mounted USB folder. I'm currently getting file not found when I try and access a PHP file on the ...
1
vote
0answers
48 views

Nginx 502 Bad Gateway

When I open my site, I get a 502 bad gateway error. After looking at the error log file in /var/log/nginx/error.log, it mentions that "upstream prematurely closed connection while reading response ...
1
vote
0answers
63 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 ...
1
vote
2answers
367 views

Nginx config, if location not

My config rewrite /silosy /produktsiya/silosy last; location /go/ { rewrite /go/http\:/(.*) http://$1 permanent; } if (!-e $request_filename){ rewrite ^/(.*) ...
0
votes
3answers
7k views

permission error with php/nginx and not using www-data

-edit- whats even more curious is if i chmod 777 /var/run/php-fastcgi/php-fastcgi.socket this works... if its not www-data, php-www (nor root) then what user is trying to access the socket :| -edit2- ...
0
votes
2answers
67 views

What does this logrotate nginx config do?

In my /etc/logrotate.d/nginx I saw, /var/log/nginx/*.log { daily missingok rotate 52 compress delaycompress notifempty create 640 nginx adm ...
0
votes
1answer
642 views

Nginx Ubuntu PHP5 - not found php-fastcgi.pid

I was setting-up Nginx with PHP5 on Ubuntu 10.04.4 TLS Server, and follow this instructions - http://library.linode.com/web-servers/nginx/php-fastcgi/ubuntu-10.04-lucid Everything is fine before I ...
0
votes
4answers
6k views

nginx ./configure can't find openssl

I'm trying to install nginx and no matter what I do, nginx can't seem to find my openssl path. It looks like it's searching for files that don't exist in any of the openssl directories. Below is my ...
0
votes
0answers
20 views

Kolab behind Nginx Reverse Proxy: Connection to Storage Server failed

I am trying to setup a Kolab 3.2 instance in a virtualized environment, i can add users via /kolab-webadmin/ but i cannot login via /roundcubemail/ The error message shows the following: Connection ...
0
votes
0answers
27 views

filefield nginx progress module not showing upload progress bar

Using module: https://drupal.org/project/filefield_nginx_progress on a clean Drupal 7.26 Followed all instructions from the main page Recompiled nginx 1.4.4 with ...
0
votes
1answer
133 views

Systemd fails to start Nginx on reboot, but it works manually

Here's my situation whenever I reboot: $ systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION nginx.service loaded failed failed A high performance web server and a reverse proxy server ...
0
votes
0answers
51 views

Capacities on Load-balancer & Web Servers? Bandwidth + Performance

I'm on DigitalOcean and I have a very simple scenario for my website. Now having 3000 concurrent hits every minutes. (For example) Currently it is directly on 1 only single Apache Server. The ...
0
votes
1answer
33 views

set up a proxy in nginx

I'm using amazon cloud. I have configured LB with SSL certificates and LB's port 443 is pointing to 80 to the instance. Nginx is running on instance on port 80. I have configured nginx like if some ...
0
votes
0answers
256 views

Nginx doesnt work, no permissions rights and cant find some dir

Im using Ubuntu 13.04. I've installed Nginx, configured it with ISPConfig.. then I wanted to install the passenger module. Because Nginx doesn't allow dynamic modules I had it compiled from source. ...
0
votes
0answers
202 views

FFmpeg MUXING OVERHEAD after 900 seconds h264 & ACC (from Axis Camera) to flv rtmp

Audio and Video works for 900 seconds and then ,muxing Overhead!!! video:1889kB audio:1825kB global headers:0kB muxing overhead 2.162866% AXIS IP CAM -> ffmpeg -> nginx ffmpeg -v verbose -i ...
0
votes
0answers
45 views

error_page and error_log in same config file on nginx

Can we keep error_log and error_page directives in a same config file for nginx ? When I keep both in the same config file for same server container, it throws error something like this 2013/07/31 ...
0
votes
0answers
38 views

getting “//” after the URL

I'm running nginx web server. I have not written any rule to redirect abc.com to www.abc.com, I have just added both in server_name directive which looks like, server_name abc.com www.abc.com; My ...
0
votes
1answer
198 views

Is setting CentOS user home-dir as NGINX server block root secure for vsftpd?

This is what I did: CentOS 6.2 server installed nginx installed vsftpd in vsftpd.conf I set chroot_local_user=YES created a new user "bleh" created directory /home/bleh/public_html/ in virtual.conf ...