Friendly URLs on NGINX

NGINX is fast becoming a popular web server for web apps. Daemonite Jason had a bit of a tinker getting FarCry Friendly URLs to work with the NGINX re-write module.

# farcry test
server {
    listen       80;
    server_name  sowsew.local alias;

    location / {
       root   C:\Users\Jason\workspace\sowsew\projects\sowsew\www;
       index  index.cfm index.html index.htm;

       proxy_redirect      off;
       proxy_set_header    Host            $host;
       proxy_set_header    X-Real-IP       $remote_addr;
       proxy_set_header    X-Forwarded_For $proxy_add_x_forwarded_for;

       try_files $uri $uri/ @farcry;
    location @farcry {
       rewrite ^/(.*)$  /index.cfm?furl=$1 last;