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
56 views

Nginx: Parameter not taken into account on a specific link structure

I have WP installed on my VPS (with nginx 1.3.12 and php5-fpm 5.4.11). The first page of search results (/?s=test) is loaded properly, but /page/2/?s=test displays the same content of /page/2/ (so ...
1
vote
2answers
264 views

Ignoring unnecessary parts of URLs inside Nginx location tag

Consider the following Nginx configuration file (Nginx version 1.2.6 on 64-bit Linux): location / { root html/www.domain.com; } location /image/ { root html/static.domain.com; } Using this ...
0
votes
1answer
72 views

Deploying django for lot of sites with low traffic [duplicate]

Possible Duplicate: Can you help me with my capacity planning? I am looking for advice for our web server configuration. SaaS model startup (same app, different databases and subdomains). ...
0
votes
1answer
283 views

Ideal Varnish & nginx setup to ensure cache consistency across multiple instances

Looking for the ideal setup involving nginx as our top layer load balancer that distributes load across multiple Varnish instances. What is the best way to distribute this load? One way would be to ...
0
votes
1answer
600 views

nginx redirect dynamic page urls

After changing the URL structure of my site I am getting a lot of 404 not found errors. Can some one point me into the right direction how to change certain page urls to a single page url using nginx. ...
-1
votes
1answer
126 views

nginx and SSL config [closed]

Can nginx be used with SSL?I am using http://nginxcp.com/ for my CPanel server and here are my config file setups server { error_log /var/log/nginx/vhost-error_log warn; listen ...
1
vote
2answers
461 views

Using NGINX as a front end to a single IIS server on the same machine?

I have been using NGINX as a reverse proxy frontend to IIS 7.5 for a couple year on a production server that is directly exposed to the internet (e.g. no firewall, except the Windows 2008 built in ...
0
votes
1answer
57 views

Configuring Nginx to redirect different servers

I am trying to setup Nginx to redirect different domains to a single one - http://knyt.tl: server { listen 81; server_name _; return 302 http://knyt.tl/; rewrite ^ http://knyt.tl permanent; } ...
0
votes
1answer
168 views

nginx “pretty urls”

So essentially I'm currently facing a problem with getting the following to work. http://example.net/url.php/value1/value2/value3 I've tried various methods of try_files, but none of them seem to be ...
1
vote
1answer
7k views

Nginx “rewrite or internal redirection cycle while internally redirecting to ”/index.html“”

I have pretty much a stock installation of LEMP on Ubuntu server that I was setting up just to host a few static files. When setting up PHPNuke just for testing purposes, I noticed that I didn't have ...
-1
votes
1answer
481 views

Lowercase headers [closed]

One thing I've noticed about CloudFlare and Google's web servers are that they both use lowercase response headers. Is this just for looks, or does it actually provide a performance increase? I'm ...
0
votes
1answer
192 views

Route all subdomains except one in Nginx configuration

How do I send all requests for www.domain.com and domain.com to the root /directoryA except for the subdomain specific.domain.com which needs to go to the root /directoryB. www.domain.com is already ...
1
vote
2answers
1k views

Nginx's Too many open files, is setting of worker_rlimit_nofile enough?

Is setting the right value of worker_rlimit_nofile in nginx.conf enough solve the issue of Too many open files in nginx? Or do I still need to update the sysctl.conf and limits.conf?
0
votes
1answer
828 views

nginx try_files redirect trailing slash and 403 Forbidden

I am trying to create a combined "super cache" -> file -> module pattern with try_files ("super cache" term taken from wordpress super cache as it is a similar method). The files that are applicable ...
0
votes
1answer
244 views

set _SERVER[“HTTPS”] to yes with stunnel Haproxy Nginx

I am trying to set the _SERVER["HTTPS"] php variable to yes on my web servers. Actually, https trafic come to stunnel which forward it to haproxy which forward it to my web servers running under ...
0
votes
1answer
101 views

Serving static directory on subdomain with assets

I have a html presentation which I would like to serve on a subdomain on my server. It just consists of some static html files and some assets (the Github is here). I'm trying to write an nginx ...
2
votes
1answer
1k views

Nginx user/group config

I'm new to nginx, but over the past couple of days I've been learning about the features and all it has to offer. I'm running nginx in Centos 6.3. I've installed nginx with php-fpm but have a few ...
0
votes
1answer
218 views

Deploying a static site on AWS EC2/nginx: what am I doing wrong?

I set up a micro instance (Ubuntu, 32 bit) and assigned an elastic IP (23.23.245.104) Public DNS: ec2-23-23-245-104.compute-1.amazonaws.com I successfully ssh'ed to the machine and installed nginx. ...
0
votes
1answer
222 views

nginx HSTS with https only on admin subdirectory

I'm trying to set up an administrative web application in the subfolder /admin of my domain. I would like to make sure this app is as secure as I can make it (not because it is absolutely necessary, ...
3
votes
1answer
76 views

cannot restart php5-fpm

I've made some changes in the .ini files and wanted to restart php5-fpm. /etc/init.d/php5-fpm restart Jan 20 14:25:48.171577 [ERROR] bind() for address '/var/lib/php5-fpm/apps.sock' failed: ...
0
votes
1answer
509 views

Php5-fpm too much memory usage nginx and ubuntu 11.04 32bit

I recently got vps with 512MB ram. I install nginx 1.2.4 with ph5-fpm and a simple wordpress installation . I currently have no traffic as its in development mode.But still It shows 495MB used and 80% ...
0
votes
1answer
988 views

Nginx php-fpm pool being blocked and stop responding

I'm having some issues with requests for pages not getting a response after requests take a long time to process. I have nginx setup to use php-fpm. I have two pools setup in PHP-FPM. One pool for ...
2
votes
1answer
3k views

How to store php sessions using memcached and unix socket

I am running Arch linux with systemd, nginx, and php with php-fpm. I am trying (and failing) to configure memcached to store sessions using a unix socket. I have memcached installed and active, ...
0
votes
2answers
89 views

Allowing users with a dynamic htaccess across multiple servers

We have an application that is IP restricted via an .htaccess file. Another application is used to request access and updates the .htaccess with the users IP for a period of time. The current server ...
0
votes
1answer
112 views

Does nginx cache (copy) my images?

I'm using http public cache all over an images website to allow clients and anyone between the clients and my server (eg: cloudflare, isp, etc) to cache HTML, assets (js/css/icons), and images (the ...
1
vote
0answers
180 views

YSlow - Giving Fs for Expire and Compression, but response headers appear correct

I just moved a moderately busy wordpress site from shared hosting to a VPS server with 512MB ram and attempting to performance tune before I break down and buy another VPS to lighten the load. As such ...
1
vote
1answer
134 views

Can I run Apache2 and Nginx on the same server with only 1 IP

I recently set up an Ubuntu 12 server (on Rackspace Cloud's next-gen servers). I will be serving about 10 small web apps on this server. Due to how these apps were built, the PHP app need to run on ...
0
votes
1answer
171 views

how to add links to view nginx error logs from within virtualmin?

i was wondering this, then found someone else wondering it too (at that stage with no reply) https://www.virtualmin.com/node/24417 when you switch from apache to nginx you dont get the same option ...
0
votes
1answer
779 views

Upgrading nginx-full 1.2.1 to nginx 1.2.6 from PPA on Ubuntu 12.10

I'm trying to upgrade nginx 1.2.1 to version 1.2.6 on ubuntu 12.10, but with no luck. I've previously installed nginx using apt-get install nginx-full because I needed the modules instead of building ...
2
votes
0answers
373 views

Understanding Nginx try_files and fastcgi_path

I'm trying to convert a very simple .htaccess file to nginx: Options -Indexes -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] As I read on Google and ...
1
vote
0answers
497 views

How to redirect all HTTP traffic to HTTPS for a Django 1.4 application running on an EC2 with nginx/uWSGI behind ELB with an SSL cert

I would like to know how to put my entire django site behind HTTPS. If anyone tries to come via HTTP I want that user to be redirected to HTTPS. Currently, firefox is giving me the error "Firefox has ...
0
votes
1answer
425 views

Nginx for Windows or Linux - which is recommended for a Redis cluster and what is the recommended configuration? [closed]

We are currently exploring Nginx as a reverse proxy server and have done some preliminary tests with the Windows version. Since the stable product has been available for Linux, I would like to know ...
0
votes
1answer
512 views

Nginx: Modify response body with additional request

I'm looking for a way to modify the body of a response created by some webserver to which I proxy my requests using Nginx: server { listen 80; server_name localhost; location ...
3
votes
4answers
683 views

Nginx rewrite rule “^/([a-z0-9]{32})\.png$” not working (used to work on Apache)

I have these rewrite rules (I tried both with no avail): location ~* "^/([a-z0-9]{32})\.png$" { rewrite ^ /index.php?page=log&id=$1 last; } and location ~* ...
0
votes
1answer
45 views

nginx rewrite to redirect domain to domain2

I'd like to redirect www.mydomain.com to www.mydomain2.com/try.html. These domains are on two different servers. This is what I've tried but it does not work: if ($http_referer ~* (www.mydomain.com) ...
0
votes
1answer
301 views

Cannot execute PHP file from domain name

Server run on Amazon Linux AMI** (similary to redhat) I follow the installation from Install PHP-FPM, Nginx, & MySQL on EC2 with Amazon Linux AMI It's work properly if I call directly from server ...
1
vote
2answers
114 views

Easiest way to implement url rewriting for multiple VHost on Nginx

I have a lot of Vhost on my server, and I'm looking for a way to easily configure Url rewriting without having to open Putty, connect on SSH and editing with vim. Is it possible to put the rewrite ...
0
votes
2answers
191 views

nginx url index.php/page/Gallery.html returns 404

sorry if this is a repeat, please just link me if so. this is my first time setting up nginx. (its under virtualmin and debian) it serves php fine, such as index.php but the url ...
-1
votes
1answer
53 views

redirect www.mydomain.com to www.mydomain2.com/try.html

My nginx server has two server_name: mydomain.com and mydomain2.com I'd like to redirect all requests from mydomain.com to mydomain2.com/try.html using a rewrite with the referer. I am trying to do ...
0
votes
1answer
71 views

nginx server blocks some ip address

I realize that the nginx server block some IP but don't know how to troubleshoot this . Here is the current state : From machine A I can access to foo.com (foo.com is under nginx) From machine B ...
0
votes
1answer
58 views

nginx / mod_passenger on linode instance with oom messages - where to look next?

I am running an Ubuntu Server that is starting to have problems. It's very lightly used but am confused to why it is now having memory issues. I've included some of the output from syslog and free -m. ...
1
vote
1answer
239 views

strange lines in nginx log

I'm running nginx 1.2.6 behind amazon elb. Periodically I see the following lines in nginx access.log: 10.28.135.252 - - [14/Jan/2013:14:20:07 +0000] "-" 400 0 "-" "-" "-" 10.28.135.252 - - ...
0
votes
0answers
1k views

Logwatch configured for nginx with custom log format gives empty output

Problem I have configured logwatch (CentOS 5.8, x64) to include nginx, using this as a guideline and using the Apache and nginx documentation on log formats. The problem is, that I'm using a specific ...
1
vote
1answer
338 views

Blank PHP pages when using php-fpm and nginx on a Debian VPS

I keep receiving a blank page whenever I try to access a PHP page on my nginx webserver on a Debian VPS. nginx is working fine; I can access any normal HTML page. PHP-FPM is at least running, as I can ...
0
votes
0answers
173 views

Nginx subdomain issue

I am trying to set up subdomain on my debian server with nginx.But I could not success. I am using currently shared hosting with justhost.com, I wanna switch my site to linode server. my ...
1
vote
0answers
225 views

Issue serving static contents securely via nginx X-Accel and rails send_file

I am trying to serve static contents via nginx & rails using X-Accel-Redirect. My actual static content directort located at rails root folder like this rails_root\books. This is my nginx config ...
1
vote
1answer
103 views

How to setup a “server is down” message like Reddit and Twitter does? [closed]

I have a VPS with our Ubuntu LoCo Team's blog, but I want to setup a message that says the server is down when it happens, like Reddit and Twitter does. For example, if I restart the server or my VPS ...
0
votes
1answer
13k views

nginx server directive is not allowed here

I know there are dupes of this out there, but I can't seem to solve this in my situation. I'm following this article on setting up nginx as reverse proxy with apache. And I get this error: nginx: ...
0
votes
1answer
677 views

Nginx - redirect all url's to root (not show the HTML page in the URL?)

I need to turn my previous site running wordpress into a single page site. My site can only contain a landing page and I want all of the old URL's to 301 redirect to the root of my site. I have this ...
0
votes
1answer
1k views

How to point 1and1 domain to no-ip hostname

I have a linux server hosting several virtual domains using Nginx. My ISP provides a dynamic IP and I am trying to avoid paying extra for a static IP. I am experimenting with a domain name purchased ...