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

0
votes
1answer
3k views

nginx: problem configuring a proxy_pass

I'm converting a web app from apache to nginx. In apache's httpd.conf I have: ProxyPass /proxy/ http:// ProxyPassReverse /proxy/ http:// The idea is the client send this url: ...
0
votes
0answers
4 views

Custom nginx error page returning 200 OK instead of error status

I have the following in my configuration: server { ... error_page 403 = /403.html; location /403.html { alias /path/to/website/403.html; ...
1
vote
1answer
68 views

How to log clients' real IPs when using CloudFlare + Nginx + Apache

I've been stuck for days trying to solve this problem, I hope someone can help me with this. I have Nginx stands as a reverse proxy in front of Apache. I'm able to log clients' real IPs by using ...
0
votes
0answers
10 views

Spdycheck is OK but Chrome 42 has Not Spdy Enabled

I am trying to implement spdy protocol with Nginx 1.8.0. I've built it with spdy module. When I check my website through spdycheck.org it is everything green and says spdy 3.1 is supported, but ...
-1
votes
0answers
26 views

How to log uploaded files with nginx?

I want to log names (with full paths) of all uploaded files. Is is possible to do it with only nginx? os: CentOS 7.1 nginx: 1.6.3 Parameters for sending files in nginx.conf: sendfile on; ...
1
vote
1answer
31 views

Nginx Load Balancing proxy confusion

I'm currently trying to setup a load balancer for a bunch of download mirrors. While reading into this subject I saw Nginx lends itself perfectly as a load balancer, great! But when looking at the ...
2
votes
0answers
18 views

simple Nginx config not working

I am a developer with absolutely no server experience, this project I'm working on is my first foray into the world of servers. Basically I have to host an API online, on a Linode server running Nginx ...
0
votes
1answer
812 views

How to prevent nginx from locking files on mounted samba partition in Centos 6

I'm using nginx 1.3.8 inside a centos 6.3 virtualbox 4.2.4 virtual machine. The system is running the latest software available via yum update. The host OS is windows 7. The site files nginx is ...
0
votes
1answer
53 views

NGINX, how to strip location prefix in $fastcgi_script_name

I've already read that : how to remove location block from $uri in nginx configuration? but is there a way to strip the location blocks's prefix from the $fastcgi_script_name without using regex ? ...
0
votes
1answer
74 views

why django project failed deploying? - django + nginx + uwsgi

I am trying to deploy a Django project through Nginx and uWSGI. If I run the project manually running python manage.py runserver :8000 it works fine, so the project itself is not the problem I guess. ...
1
vote
2answers
933 views

Another PHP NGINX error: “No input file specified”

I looked through about 5 questions and blog posts already and tried everything they told me without luck. I can browse to www.example.com/phpinfo.php, but not www.example.com/index.php. I even went so ...
0
votes
1answer
994 views

Nginx reverse proxy with separate aliases

Interesting question I have this python code: import sys, bottle, gevent from bottle import * from gevent import * from gevent.wsgi import WSGIServer @route("/") def index(): yield "/" ...
0
votes
3answers
32 views

Nginx 301 redirect https to http

I have a strange issue with a trailing / I'm using nginx and it is functioning correctly with one small exception. I have the following site config server { listen 80; return ...
0
votes
1answer
15 views

How can I get nginx reverse proxy to work with java applet that checks document base?

So I'm trying to setup a reverse proxy with nginx to a java applet on remote server, but the problem I'm having is that it checks the document base, I can get it to load from ...
1
vote
1answer
873 views

Nginx Reverse proxy leading to Redirect loop

I have a load balancer (Nginx) and another Apache server which is hosting a wordpress blog (at /blog). I want all my traffic on my load balancer at /blog to go to this Apache server. I have the ...
8
votes
3answers
125 views

How to make redundant load balancers?

I understand that the purpose of load balancers is to balance load between your servers and keep track of instance health, etc. But what if load balancer itself fails? How do you set up redundant load ...
0
votes
0answers
20 views

nginx open reverse proxy?

Somehow, and I'm not sure how, we have configured an nginx reverse proxy that is acting as an open proxy. The log files tells us the matching requests are going against the following conf file: map ...
1
vote
0answers
70 views

How to configure HHVM with Nginx compiled from source?

I installed Nginx 1.8 (compiled from source) on Debian 7: cd /opt/ sudo wget http://nginx.org/download/nginx-1.8.0.tar.gz sudo wget http://labs.frickle.com/files/ngx_cache_purge-2.3.tar.gz sudo tar ...
2
votes
1answer
41 views

nginx goes to the wrong site when requested site is not listening on port 80

I had both production (www.myexample.com) and development (dev.myexample.com) on a single server, using server blocks and separate directories, with both listening on port 80. This worked fine. Now ...
0
votes
2answers
536 views

Host Stacey on a nginx server? (convert .htaccess to nginx)

Stacey is a lightweight content management system. I am using it on my porfolio website however it uses .htaccess file to make friendly urls. Is it possible to rewrite this .htaccess lines for using ...
0
votes
1answer
17 views

How can I parse an nginx msec field in logstash?

I'm trying to handle an nginx access log in logstash. In order to get millisecond accuracy for my timestamps, I'm using the $msec variable. This means that timestamps will be of the form ...
0
votes
0answers
10 views

Memcached vs Amazon Elasticache with PHP on CentOS 7

I setup a new CentOS 7 server in Vagrant to run PHP, nginx, MySQL (MariaDB) and memcached (note the d on the end). I can get memcached to run fine, but I can't get the Amazon Elasticache .so file to ...
0
votes
2answers
1k views

Chef-solo cannot locate an nginx recipe template

I have been recently experimenting with Chef. I thought I would attempt to rebuild my personal web server using chef-solo. It's an AWS instance running the Amazon 64bit Linux AMI. My first ...
0
votes
1answer
760 views

PHPMyAdmin blank page but HTML source is present

I just installed Nginx 1.6.0, MySQL, PHP-FPM 5.5.9 and phpMyAdmin on my Ubuntu 14.04 LTS 64-bit server. When I go to domain.tld/phpmyadmin I end up at a blank page but when I view source, I can see ...
1
vote
0answers
27 views

How to block fake google spider and fake web browser access?

Recently I found that someguys are trying to mirror my website. They are doing this in two ways: Pretend to be google spiders . Access logs are as following: 89.85.93.235 - - [05/May/2015:20:23:16 ...
1
vote
1answer
878 views

Varnish stops listening on port 80 after few hours

I have configured varnish to listen on port 80 and nginx to listen on 8080. After around 24 hours of uptime, my site has been down for 22 hours. I checked in and found varnish isn't listening on port ...
-1
votes
1answer
26 views

The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF [on hold]

I've tested my website with mxtoolbox.com and got this message: Result: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF I've googled around ...
-1
votes
0answers
14 views

How to disable httpd permanently in Centos 6 [on hold]

I installed NGINX in the server, which was earlier APACHE (httpd). Since i could not remove, erase the httpd via yum - i disabled it by, service httpd stop chkconfig httpd off But after a while, ...
1
vote
1answer
24 views

No write permission for Wordpress under Nginx in CentOS 7

I have a CentOS 7 machine with Nginx running and the user is "nginx" (tghe default one in CentOS). I've installed Wordpress, which is working perfectly, and I've give wrtite permissions for nginx user ...
-4
votes
1answer
12 views

url forwarding in nginx

First time using nginx. I want to forward any incoming request which looks like this: https://www.example.com/elasticsearch to http://localhost:9200 with nginx. I wrote following in my nginx config in ...
0
votes
0answers
23 views

Forge Nginx 404 Error

I have set up a Laravel 5 site via Forge (hosted on DigitalOcean). My problem is that when I enter either the domain or the IP address for the server, I get a 404 error. I can, however, SSH into the ...
1
vote
1answer
52 views

Nginx 1.8 Configuration Problems

Here is the problem : (I'm new to NGinx, read about it, but didn't find my working solution yet.) I'm on a Windows system. My projects file system is located there : E:/www/ here is a project ...
-1
votes
1answer
21 views

How can I update nginx to lastest stable version?

I'm using a CentOS 6.6 Linux server and I have nginx 1.7.3 Installed on it . How Can I update Nginx to latest stable version (Nginx 1.8) ?
-1
votes
1answer
19 views

domain name not connecting to server [on hold]

I have a VPS and i have purchased a domain name, setakshop.ir. now what I wanna do is to bring up a website on the VPS and bind it to the domain name.I followed the tutorial from this link: ...
0
votes
1answer
5 views

Mercurial ACL extension: allow all users on all branches except one branch which is only for specific users

I want to use the ACL extension in order to allow only the QA team to make pushes and commits to the stable branch, while putting no restriction on other branches. However, I don't see how to do that ...
-1
votes
0answers
23 views

Can't install PHP-FPM in CentOS 6.6, using repositories too [on hold]

I don't know what is happening, using repositories too - i can't install PHP-FPM in my CentOS 6.6 Server. Also i created a file /etc/yum.repos.d/nginx.repo with the below code, [nginx] name=nginx ...
1
vote
0answers
8 views

NginX proxy_read_timeout TCP connection status

When NginX is configured as a reverse proxy and gives up waiting for the following reasons proxy_read_timeout proxy_connect_timeout proxy_send_timeout it sends a 504 gateway timeout to the ...
-1
votes
1answer
175 views

HTTP 301 moved for all nginx URL to a single HTTPS

Below is a config file that I am using with Nginx to redirect all WWW and non-WWW to the https:/domain.com URL server { listen 80 443; server_name domain.com www.domain.com; ...
1
vote
1answer
1k views

Nginx worker_processes and multi core cpu's - Do Hyper-threading cores count?

Quite often, when reading about the recommended worker_processes for nginx it is stated that this should be set to the numbers of cores the server hosting nginx has. We were wondering if we should ...
13
votes
3answers
4k views

Alternatives to apache benchmark? [closed]

I'd like some tools for ubuntu that I can use to test my server, how much it can handle. Any suggestions? I've used apache benchmark before, but I'd like to try out something else. (As a side ...
2
votes
1answer
944 views

How to properly configure Play Framework 2.1+ and Nginx for Production?

I am attempting to properly set up Play Framework with Nginx as the front-end HTTP server on Amazon AMI. I am a bit confused by the official documentation set out by Play. Are they suggesting that ...
-1
votes
0answers
12 views

I need help configuring a raspberry pi server with nginx [on hold]

I have everything set up, and can even access my website while directly linked to my lan. I cannot, however, access it outside my network. I've read through many many tutorials and forums, but have ...
1
vote
1answer
121 views

Nginx, check for request method without using IF?

I am trying to optimize my Nginx config but ran into an issue I don't know how to fix. I have a folder /images on my server from which I deliver various static files for a website. The same folder ...
4
votes
2answers
343 views

SSL routines:SSL23_WRITE:ssl handshake failure, nginx on CentOS 7

First of all, what do I have: OpenSSL 1.0.1e-fips 11 Feb 2013 nginx version: nginx/1.6.2 CentOS Linux release 7.0.1406 (Core) and, for testing purposes, a self-signed certificate: openssl req ...
0
votes
1answer
1k views

php-fpm returning empty response to nginx

nginx is connecting to php-fpm over fastcgi, using the standard /etc/nginx/fastcgi_params in the location block. When connecting to /.status (php-fpm.ini::ping.path) from the command line with ...
0
votes
0answers
32 views

Nginx 403 Forbidden Error After Basic Auth [on hold]

I created auth for protect my phpmyadmin. But If I enter right login details, its shows me 403 forbidden. sudo nano /etc/nginx/conf.d/default.conf location /phpmyadmin { auth_basic "Admin ...
0
votes
3answers
382 views

On Ubuntu installed NginX and Can't find where new WWW root is

On Ubuntu 13.04 the original WWW was in /var/www/ then I installed NginX and it installed correctly but I can't find the actual folder accessible by http (I looked in /etc/nginx/). I searched for ...
2
votes
1answer
2k views

nginx return 301 / redirect

among all 'redirect in nginx' questions I couldnt find how to redirect (using return 301 and beteer no ifs) using regexps. I have a link to my website and I'd like to remove parameter a the end: ...
-3
votes
1answer
23 views

Unrecognized Service Nginx ERROR [on hold]

I freshly created droplet on digital ocean, centos 6.5 64 bit. I did all things below. After make install, it seems like nginx doesn't installed my server. I am getting Unrecognized Service Nginx ...
2
votes
1answer
34 views

nGinX Forbidden still triggers request limit

I have some "deny" rules before the request limit config. If a blocked user (by the deny rules) is ddossing the site he still triggers the request limit and therefore creates thousands of log entries. ...