nginx (pronounced "engine-x") is a lightweight, high-performance Web server and reverse proxy as well as IMAP/POP3 proxy server.

learn more… | top users | synonyms

1
vote
0answers
589 views

How Do I Configure Nginx To Communicate with SMTP Server?

I'm an application developer and have little knowledge on sysadmin / server configuration tasks. I have an nginx server communicating to a Flask web application through uWSGI on a VPS. I'm trying to ...
1
vote
0answers
842 views

Phalcon does not load under nginx and php5-fpm

I've tried putting extension=/usr/lib/php5/20121212/phalcon.so into /etc/php5/fpm/php.ini, when it didn't work, I've put that into /etc/php5/cli/php.ini as well and when that didn't work either, I've ...
1
vote
0answers
52 views

Can I pass_proxy over https?

Is it possible to have something like this in my local nginx.conf? pass_proxy https://mybackend.com:443; If not, how do I make my local nginx request and return my remote backend API over SSL?
1
vote
0answers
173 views

Why isn't puma using all of its threads?

I'm using puma and nxinx, and as far as I can tell it is only ever using a single thread even when I start it with the default of 16 threads or more. I've set up a fresh rails app, then gone through ...
1
vote
0answers
198 views

UWSGI is not creating my socket

So, i'm getting an error because my .sock file is not being created by uwsgi. I'm also running a VB with vagrant. my uwsgi.ini [uwsgi] master = true pidfile = /tmp/uwsgi-%n.pid workers = 12 ...
1
vote
0answers
42 views

nginx proxy_pass directive acting up on OSX?

I have the following lines in my nginx.conf on my Mac: location /addPat { resolver 8.8.8.8; proxy_pass http://some_url:8080$request_uri; proxy_http_version ...
1
vote
0answers
159 views

Laravel Routes to wrong directory on Nginx

I have just played with Laravel some hours ago and seemed to hit a wall. My nginx document root is usr/share/nginx/html/. Inside this folder I have an index.php (which shows phpinfo();) and a Laravel ...
1
vote
0answers
71 views

Nginx HttpRedis2Module get value only

I am trying to set up Nginx caching with multiple servers using a shared Redis instance for storage. I am using the HttpSRCacheModule, along with HttpRedis2Module. In the example configuration, both ...
1
vote
0answers
155 views

HTTPS works, HTTP does not

I use NGINX 1.5.12 on Ubuntu 13.10 and HTTPS works fine and the pages are served (both HHVM and PHP5-FPM) trying to load the website in HTTP fails and WGET returns this: HTTP request sent, awaiting ...
1
vote
0answers
2k views

nginx service won't start after reboot + won't give output for service nginx status or start

A few weeks ago I configured an ec2 ubuntu server for my rails app. everything worked great. the database is on RDS and I use nginx and passenger for the rails app. anyway everything worked great ...
1
vote
0answers
229 views

Can't deploy Ruby 2, Rails 4 app to Linode

I have a Rails 4 app and I want to deploy it to my Linode and I'm struggling a lot to get this working. I followed all the basic instructions from the Linode guides, also, installed all the ...
1
vote
0answers
33 views

Nginx-watch script - issue with inotifywait not seeing changes

I'm using Nick's excellent nginx-watch script to monitor an nginx.conf file in www root so that it reloads a couple of wordpress plugin nginx configurations automatically as soon as they change (BWPS ...
1
vote
0answers
552 views

Nginx cache shared between multiple servers

We have 8 REST-ish API servers with Nginx using FastCGI with PHP-FPM to handle requests. We're currently using Nginx' FastCGI caching (directives like fastcgi_cache_path). This means that API ...
1
vote
0answers
108 views

LXC and proxying port 22 (ssh)

I have installed LXC on my Ubuntu 12.04 server and have created a couple of containers. I have only 1 external IP address, thus I am using nginx on my host machine to proxy HTTP requests from certain ...
1
vote
0answers
245 views

LA problems while serving 40M requests daily with php-fpm, nginx

I have server with FreeBSD (16 cores with HT, SSD, 32Gb RAM) which is getting about 40M http requests daily. All requests are served by nginx + php-fpm. At these graphs you see that we have a ...
1
vote
0answers
48 views

nginx can't find cgi two levels deep

Typically, I want to serve an index.html file when http://mysite.com/ and any other directory is requested. The following, in nginx.conf, does that for /test: location /test { try_files $uri.html ...
1
vote
0answers
205 views

Nginx downloading files instead of executing php

nginx server is downloading the php files instead of executing them I tried every solution that has been posted around web most of the people had problem with location but mine is uncommented ...
1
vote
0answers
215 views

APACHE/NGINX fine tuning for Apache Benchmark testing

I need to know some tuning configuration about APACHE/NGINX. I use Ubuntu Server 12.04.4 LTS on VirtuaBox with two VM: one with APACHE 2.2.22, the other with NGINX 1.1.19. In addition I installed PHP ...
1
vote
0answers
259 views

PHP-FPM errors only when running as a system service on Fedora 20. (File not found / Primary script not found)

I am trying to setup NGINX with PHP-FPM on a Fedora 20 box and I am getting the "File not found / Primary script unknown" errors only when starting php-fpm as a system service. I am using a default ...
1
vote
0answers
222 views

Error message before downtime: posix_memalign(16, 4096) failed (12: Cannot allocate memory)

I have a server running Django on top of Gunicorn and Nginx, and I experienced a small amount of downtime last night. After restarting Nginx and Gunicorn the server went back to normal, but I can't ...
1
vote
0answers
202 views

Does NGINX allow for switching load to another server without losing the requests?

Does NGINX allow switching load from one server to another without losing the request? I have a SOAP API, NGINX forwards the request to one of three servers each which forwards it to a queue and ...
1
vote
0answers
121 views

Mime type in nginx for dynamic url

user upload file and its kept in file directory without file extensions so it looks like file/ID what i had done, when user download any file, we have created a rewrite rule for the same which looks ...
1
vote
0answers
211 views

Character encoding of file names with autoindex at webserver on windows

I have set up a webserver on windows 8.1. Now i am having problems with the character encodings of links: There are directories and file names containing german umlauts (ä ö ü ß). The autoindex ...
1
vote
0answers
232 views

Nginx Returning 504 Error

I'm getting a 504 error from Nginx on my Ubuntu server where I'm running Rails using Unicorn. When I look in the Nginx error.log.1, I see: 2014/01/21 18:06:02 [error] 698#0: *2 connect() failed ...
1
vote
0answers
269 views

Nginx isn't redirecting right

I'm starting with Nginx and have a lot of problems since things change from Apache to Nginx. Right now I have a application developed in Symfony1.4 which don't work since I get a 404 Not Found error. ...
1
vote
0answers
157 views

Why is memcache not functioning with elgg in debian 7?

I am moving a php website (built using elgg - www.elgg.org) from a CentOS server to a different Debian 7 server and have installed memcached + php5-memcache on both. I have recreated all the ...
1
vote
0answers
503 views

nginx proxypass squid

I'm trying to run squid server behind nginx. my sample configuration : location ~* ^/get/(.*) { proxy_pass http://ip:3128; proxy_set_header Host evenstatichostnamefortest.com; ...
1
vote
0answers
514 views

setup nginx to serve django and wordpress blog as subdirectory

upstream django { server unix:///home/ubuntu/web/www.mysite.com/uwsgi-tutorial/mysite/mysite.sock; # for a file socket } server { listen 80; server_name mysite.com www.mysite.com; ...
1
vote
0answers
381 views

How to setup cross domain rules in discourse?

So i use the following page to gather information from the user and send it to forums.awake-gaming.com/posts for discourse to make a post for me . Url of page : awake-gaming.com/join-us.html Url, ...
1
vote
0answers
57 views

Paths Generated by PHP Applications Incorrect In Fedora nginx php-fpm Setup

I have been having several issues with certain PHP apps lately on my Fedora nginx + php-fpm setup. I originally had this issue with Owncloud, and created a question, without much luck, but I am ...
1
vote
0answers
171 views

(111 connection refused) while connecting to upstream

I have a ubuntu 13.10 server with nginx and php5-fpm installed, the server has just been started and as such i am sure it is not a buffer or connection overload issue. I have set the site config in ...
1
vote
0answers
89 views

Nginx +php-fpm auth_base on url

Good evening. How i can protect some URL by password(auth_base)? When i try write location ^~ /test/ { auth_basic "admin login"; auth_basic_user_file /etc/nginx/httpd.passwd; location ~ \.php$ { ...
1
vote
0answers
103 views

Setting up nginx, rewrite and fastcgi

This problem has been driving me nuts for the last couple of days... Working on an application that needs authentication and exists of different parts (CMS, API, frontend) we ran in to some problems ...
1
vote
0answers
662 views

Nginx load balancing redirects to upstream “name”

Introduction: Please read this serverfault question on nginx load balancing issue with 301 from backend. Somewhat similar to my problem, but the answer doesn't work. Nginx is redirecting to the ...
1
vote
0answers
2k views

Nginx reverse proxying to HTTPS upstream getting 502 Bad Gateway?

My goal is to write Jasmine (a JavaScript BDD testing framework) tests that exercise a back-end API built by a separate team. I have a Jasmine server running on port 9000. That code issues AJAX ...
1
vote
0answers
448 views

nginx configuration for rails subdir deployment

I'm having quite a bit of trouble configuring nginx to serve my Rails app's static files; I mean all the files in the app's public/ folder, not just the files in Rails' asset pipeline. It seems I'm ...
1
vote
0answers
122 views

Does nginx try_files have a bug

I have a directory structure like this: /opt/mysite/www: F: index.html D: connect/ F: -- index.html F: -- page.html With URL http://www.mysite.io/connect, the try_files results in a 301 to: ...
1
vote
0answers
632 views

Ubuntu Locales Incorrect for Python Application

I have a NGINX -> UWSGI -> Django(python) stack installed on an Ubuntu AMI on Amazon EC2. I've run into a problem when accessing a file with unicode characters in the name. The exact output from the ...
1
vote
0answers
272 views

nginx SNI not working as expected

I have been dealing with this for the past few days and it is driving me nuts. I have nginx acting as a reverse proxy in front of apache. I have two vhosts each setup with their own ssl cert in ...
1
vote
0answers
195 views

Rewriting a proxied upstream

I have a server which serves LuCI for me on localhost:8080. I'm trying to proxy to it via nginx, but I'd like to rewrite the URLs so that instead of https://myserver/cgi-bin/luci, I have ...
1
vote
0answers
449 views

How to setup svn with nginx that can be checked out via http protocol?

I am trying to setup a SVN on my linode server (Debian). https://library.linode.com/linux-tools/version-control/svn I found an article here but it only tells me how to setup with Apache. I am using ...
1
vote
0answers
4k views

NGINX connect() to unix:/var/run/php5-fpm/forums.socket failed

I recently set up my server again with nginx, PHP-FPM. i did what I always do but now the nginx or php-fpm doesn't process php files. ( I test with the simplest form of php phpinfo(); ). In the error ...
1
vote
0answers
362 views

Varnish server in front of nginx server with multiple virtualhosts

I have tried to search for a solution for this, but can't find any documentation/tips on my specific setup. My setup: Backendserver: ngnix: 2 different websites (2 top domains) in virtualenv, ...
1
vote
0answers
2k views

“Cannot allocate memory” Using composer to install composer using fork from laravel git

Whenever I try to install a new laravel project, I receive the following error: PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' ...
1
vote
0answers
85 views

How to serve static files with version number with Nginx?

I just finished installing Nginx for wordpress but all static files with ?ver=x is redirecting to nginx's default page. Working /jquery-ui-1.8.6.custom.min.js Redirecting to default Nginx page ...
1
vote
0answers
304 views

nginx codeigniter rewrite: Controller name conflicts with directory

I'm trying out nginx and porting my existing apache configuration to nginx. I have managed to reroute the codeigniter url's successfully, but I'm having a problem with one particular controller whose ...
1
vote
0answers
137 views

Nginx - Adding a trailing slash to urls on HTTPS

I am using the below regex to add a trailing slash to any url that doesn't have a railing slash or ends ends with .. rewrite ^([^.]*[^/])$ $1/ permanent; This works fine for http, but when I use ...
1
vote
0answers
180 views

nginx with fail2ban and mod_security

I forgot to update my fail2ban config for nginx. I just moved to nginx from apache. Today, I got a lot of cals from a single IP. IP tried to access login pages with post and get methods IP tried to ...
1
vote
0answers
651 views

Nginx rewrite directory to Symfony App but remove host directory

I have a VM with several development apps living on it. The basic web directory looks like: /var/web/subdoms/: index.php MyApp/ SomeOtherApp/ I have my Nginx config file specifying the ...
1
vote
0answers
264 views

nginx serve different html file for googlebot

I have an angular app served through nginx. For googlebot I want to serve a different static html file so that it can index properly, is the following nginx config correct? (I don't want to complicate ...