mirror of
https://github.com/d0zingcat/ghost-docker.git
synced 2026-05-13 15:09:34 +00:00
Caddy: Migrate redirects to placeholders
- We want customers to now copy the example Caddyfile so this still gives people the option but also makes it easier for customers who don't want to redirect themselves
This commit is contained in:
@@ -31,8 +31,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
# Redirect www to non-www (optional)
|
||||
www.{$DOMAIN} {
|
||||
import snippets/Logging
|
||||
redir https://{$DOMAIN}{uri}
|
||||
}
|
||||
# If you want to redirect the www variant of your domain to the non-www varient uncomment the below 4 lines
|
||||
# Note: You must have DNS setup correctly for this to work
|
||||
# www.{$DOMAIN} {
|
||||
# import snippets/Logging
|
||||
# redir https://{$DOMAIN}{uri}
|
||||
# }
|
||||
|
||||
# If you want to redirect the non-www variant of your domain to the www varient uncomment the below 4 lines and replace REPLACE_ME with your domain
|
||||
# Note: You must have DNS setup correctly for this to work
|
||||
# REPLACE_ME {
|
||||
# import snippets/Logging
|
||||
# redir https://REPLACE_ME{uri}
|
||||
# }
|
||||
|
||||
Reference in New Issue
Block a user