Created
June 27, 2020 15:38
-
-
Save khan-rizwan/3f65cd0cb97c165e3339a3bb4683cb1f to your computer and use it in GitHub Desktop.
nginx location block for hosting gitbooks on your domain custom path
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
location /docs/ { | |
proxy_pass http://{author}.gitbook.io/{book}/; | |
sub_filter_once off; | |
sub_filter_types *; | |
sub_filter "/{book}/" "/docs/"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment