Skip to content

Instantly share code, notes, and snippets.

@dhrp
Created June 12, 2013 02:59
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 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