Skip to content

Instantly share code, notes, and snippets.

@SlexAxton
Created December 2, 2010 08:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SlexAxton/724980 to your computer and use it in GitHub Desktop.
Save SlexAxton/724980 to your computer and use it in GitHub Desktop.
a nginx conf for the testswarm .htaccess
location ~ \.ini$ { deny all; }
location / {
root /location.com/httpdocs;
index index.php index.html index.htm;
try_files $uri $uri/index.php @normal; location @normal { redirects }
rewrite ^(.*[^/])$ $1/ permanent;
rewrite ^run/$ index.php?state=run last;
rewrite ^run/(.*)/?$ index.php?state=run&user=$1 last;
rewrite ^login/$ index.php?state=login last;
rewrite ^logout/$ index.php?state=logout last;
rewrite ^signup/$ index.php?state=signup last;
rewrite ^scores/$ index.php?state=scores last;
rewrite ^user/(.*)/?$ index.php?state=tinder&user=$1 last;
rewrite ^job/(.*)/?$ index.php?state=jobstatus&job_id=$1 last;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment