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
332 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
56 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
157 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
82 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
95 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
624 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
421 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
109 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
526 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
250 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
177 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
426 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
143 views

nginx and cloudlfare ip confusion?

I am using the below config in http block of my nginx.conf to get real ip while using Cloudflare acceleration service: ## Cloudflare settings to get Real IP's set_real_ip_from ...
1
vote
0answers
339 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
69 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
272 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
124 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
161 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
597 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
215 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 ...
1
vote
0answers
114 views

nginx - php5-fpm - woocommerce => settings dont save - only after restart of php5-fpm

We are unable to save settings in woocommerce when php5-fpm is running for more then 12 hours. Sometimes the changes are reflected in the DB but then don't show in the backend, other times the ...
1
vote
0answers
101 views

Upstart shows non-existent process running

I am using upstart 1.8-0ubuntu1 on Ubuntu-1210-quantal-64-minimal. It shows me nginx to be running, when it's not. # service nginx status nginx start/running, process 2543 # ps -p 2543 PID TTY ...
1
vote
0answers
220 views

PHP file upload failure for large files

Using a simple php script, when I try to upload files larger than 1MB it fails by giving this undescriptive error: General upload failure. Nginx error log does not show any evidence. I have ...
1
vote
0answers
103 views

Handling multiple server blocks in nginx configuration

I am working on setting up a proxy server for my application.The use case is I want a specific set of requests to be redirect to say abc.com and rest of the request to be redirected to xyz.com. Eg:If ...
1
vote
0answers
52 views

Two urls directed to same file

I need two urls to point to the same php file using nginx. How do I do this? example: api.example.com/users => /var/www/public_html/index.php/users example.com/api/users => ...
1
vote
0answers
199 views

Nginx compiled with couchbase-nginx-module high CPU usage

I'm testing couchbase_nginx module with ngx_srcache module to store data in couchbase. I use https://github.com/couchbaselabs/couchbase-nginx-module to compile and installed the setup according to the ...
1
vote
0answers
51 views

Redirect subfolder to subfolder and remove subfolder via nginx

I'm trying to redirect a subfolder to another subfolder with nginx. The hard part is removing the target subfolder from displaying, as it's a ruby app and not a true root folder. They are both on the ...
1
vote
0answers
146 views

Gitlab front-end public “chrooted”

i have 2 servers : first : contain gitlab + apache proxy , on my internal network domain git.development second : server front-end only nginx, on my public domain git.mydomain.com i want ...
1
vote
0answers
375 views

Getting nginx proxy to work properly with gunicorn/flask

I got this Flask app that I'm running with gunicorn on 127.0.0.1:5002 on this shared server. I got a nginx instance for myself that I can add custom configs to. The structure of the nginx directory is ...
1
vote
0answers
244 views

request hangs if made over domain

I have an app where a user can login using github. When I log in, the app hangs for about one minute. This is the log Started GET "/" for 177.97.171.165 at 2013-08-11 15:26:01 +0000 Started GET ...
1
vote
0answers
557 views

Nginx not reponding

I have setup WNMP on Windows Server 2012 despite the fact that it's not that great of a setup it's required, here are my settings: worker_processes 1; error_log logs/error.log; #pid ...
1
vote
0answers
109 views

I can't restrict access to directory and subdirs in nginx

Could you help me with my nginx config file? The problem: I can't restrict access to directory, only to one file. This line working: location ^~ /wp-admin/index.php { (But only for one file) ...
1
vote
0answers
361 views

Most efficient way to pipe web beacon logs to Apache Flume?

The Setup I've setup a simple Nginx server that logs (in a JSON) format, which is then piped to an S3 bucket with Apache Flume. All the Nginx server does is respond with a web beacon tracking pixel ...
1
vote
0answers
65 views

Nginx client certificate using IP

Following is my server block. I am using client certificate for controlling access to the webservice. Everything works fine if I access the service as https://domain.com/TEST. But if I try to access ...
1
vote
0answers
85 views

Nginx blocking webstes with proxy_pass

I have an Nginx script that proxied HTTP request using this: proxy_pass http://$http_host$uri$is_args$args; I have a list of websites and I want to make it just these ones accessbile by the proxy. ...
1
vote
0answers
198 views

Nginx fastcgi cache configuration

Here's the cache path configuration inside http{} fastcgi_cache_methods GET HEAD; fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=website:10m inactive=1d max_size=10m; Here's the config ...
1
vote
0answers
120 views

Deploying sinatra app on rails app sub uri using( unicorn and nginx)

I have rails app running on unicorn+nginx. below is the nginx.conf and unicorn.rb configuration. nginx.conf upstream unicorn { server unix:/tmp/unicorn.todo.sock fail_timeout=0; } server{ ...
1
vote
0answers
305 views

Nginx + php5-fpm + CodeIgniter Response Too Slow

I have installed nginx, php5-fpm and setup codeigniter with REST controller on Ubuntu 12.04 LTS. The configurations work but response is too slow at times, even with just a single user. Sometimes the ...
1
vote
0answers
187 views

How to block trafic from anonymous proxy to my site?

some scammers are trying to reach my site using anonymous proxy. Is there a way to block connexions from anonymous proxy with haproxy or nginx? Thanks
1
vote
0answers
206 views

Prevent Google Image Search hotlink with Nginx rewrite

Google Image Search have the ability to point to the original image without displaying the website that's hosting the image. So I want to redirect those requests to a custom page of my site. ...
1
vote
0answers
264 views

Configuring Nginx reverse proxy with SSL and websocket

I'm running a web app that is using websockets and have nginx as a reverse proxy for that and that works fine. I've also been able to get SSL to work without the socket. Now we're nearing the official ...
1
vote
0answers
111 views

Nginx doesn't rebound from 502 Bad Gateway

We have a situation where a site starts to serve a 502 Bad Gateway but doesn't seem to recover after the upstream servers rebound. The nginx server is setup to proxy/load balance requests for two ...
1
vote
0answers
38 views

Prevent NGINX from rerouting to a backend that was previously down

I'm using NGINX's ip_hash directive to ensure that client requests always end up at the same backend server. In the case of a backend server outage, NGINX will reroute to the available server, and ...
1
vote
0answers
138 views

Nginx Installed w/Passenger but No Command Line

I installed Passenger and Nginx on Ubuntu 12.10 using the following command: passenger-install-nginx-module (following instructions at www.modrails.com/documentation/Users guide Nginx.html). When I ...
1
vote
0answers
63 views

NGINX Benchmark

I had set up nginx, php-fpm and mysql as web server. Now I am testing the server that I've configured using ab (Apache Benchmark) I use this command : ab -kc 100 -n 100 http://myserver/index.php but ...
1
vote
0answers
245 views

PHP SSI with NGINX

I've got a really old website I'd like try running on NGINX instead of Apache. This site consists of many flat HTML files with sporadic PHP SSIs, such as: <!--#include virtual="/some_file.php" ...
1
vote
0answers
170 views

How can I serve up HTML and JSON with nginx during “maintenance mode”?

I've got an nginx config for a PHP web app and I would like to make it serve an additional purpose, and I can't seem to find a way to accomplish it. My current nginx config does the following: ...