Skip to content

Instantly share code, notes, and snippets.

@alx
Created January 16, 2009 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alx/48193 to your computer and use it in GitHub Desktop.
Save alx/48193 to your computer and use it in GitHub Desktop.
if (-f $request_filename) {
break;
}
if (-f $request_filename.html) {
rewrite (.*) $1.html break;
}
if (!-f $request_filename) {
proxy_pass http://merb;
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment