Created
June 12, 2013 02:59
-
-
Save dhrp/5762546 to your computer and use it in GitHub Desktop.
nginx.conf for docs.docker.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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