Skip to content

Instantly share code, notes, and snippets.

@xintron
Created January 10, 2013 14:03
Show Gist options
  • Save xintron/4502227 to your computer and use it in GitHub Desktop.
Save xintron/4502227 to your computer and use it in GitHub Desktop.
location /code/ {
try_files $uri $uri/index.html =404;
}
location ~ /code/(?<uri_path>.*/)(?<page>\d+)$ {
try_files $uri $uri_path/index$page.html =404;
}
location ~ /foo/.*.html {
return 404;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment