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

2
votes
0answers
28 views

Nginx listens at a port, but never responds

OS: Funtoo. I have bound NGINX to port 81 (I want to run it alongside my Apache server for a short time for ease of transition), and it listens at the port (If I point at another port, using wget I ...
2
votes
1answer
58 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 ...
3
votes
1answer
34 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 ...
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 ...
1
vote
0answers
50 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 ...
0
votes
0answers
25 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 ...
1
vote
2answers
40 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
2answers
380 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
1answer
722 views

Get transmission web interface working with web server

I have my working on default port and I want to be able to use the web interface with an URL like http://my.domain/torrents. I tried adding a location and a proxy conf to Nginx but it fail to work ...
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 ...
2
votes
0answers
37 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 ...
1
vote
2answers
457 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 ...
2
votes
1answer
127 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
31 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 ...
4
votes
1answer
106 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 ...
1
vote
0answers
66 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
1answer
240 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 ...
0
votes
0answers
28 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
143 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 ...
1
vote
1answer
83 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
2answers
108 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 ...
2
votes
1answer
385 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 ...
0
votes
2answers
70 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 ...
1
vote
1answer
52 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
71 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 ...
2
votes
1answer
156 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 ...
0
votes
0answers
55 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 ...
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 ...
0
votes
1answer
34 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 ...
1
vote
1answer
329 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 ...
3
votes
1answer
392 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 ...
0
votes
0answers
264 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. ...
-3
votes
1answer
159 views

Best Linux for a small Web server [closed]

I'm currently planning my business servers and I would like to know what's the best Linux distro for these needs: Nginx + MySQL + PHP 5.4 Zimbra Collaboration - Open Source Node.js w/ Forever I ...
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: ...
0
votes
0answers
204 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 ...
1
vote
1answer
427 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 ...
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
0answers
69 views

nginx should not handle unicorn's request

I have a server on which I have configured Nginx and Unicorn, where Unicorn servers static pages. In my case I'm writing a rewrite rule in Nginx that, if a request comes to mydomain.com it should ...
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
1answer
556 views

Nginx returning 502 Bad Gateway

I'm trying to set up an Nginx webserver generally following this guide but using perusio's configuration. When I try to access the site, I get a 502 Bad Gateway page. Searching on the error I've seen ...
0
votes
0answers
29 views

nginx redirect with /

I'm configuring nginx for the below scenario. I have a web server say example.com, when I'm writing a rule like if someone hits /something it should redirect on index.html (including styles and css). ...
0
votes
0answers
86 views

My APC opcode cache stopped working without a clearly identifiable cause

My APC 3.1.13 had been running fine for weeks, and today, it stopped working after I restarted PHP5-FPM. If I check out my apc.php it shows it caches some files, and then it just stops caching. I ...
1
vote
1answer
152 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 ...
0
votes
1answer
646 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
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- ...
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 ...
0
votes
1answer
2k views

How to register Nginx as a service, after installing Passenger?

I need passenger/nginx to run many sites on port 80. I have installed it with its own installer (per the instructions on the nginx website. But nginx is not registered as a service. I can only run it ...
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 ...