Skip to content

Instantly share code, notes, and snippets.

@dhrp
Created June 12, 2013 02:59
Show Gist options
  • Save dhrp/5762546 to your computer and use it in GitHub Desktop.
Save dhrp/5762546 to your computer and use it in GitHub Desktop.
nginx.conf for docs.docker.io
f ( $request_uri ~ "/index.html" ) {
rewrite ^/(.*)/ /$1 permanent;
}
if ( $request_uri ~ ".html" ) {
rewrite ^/(.*).html /$1/ permanent;
}
error_page 404 = /404.html;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment