Browse Source

new: [apache] redirection from ``http`` to ``https`` is managed by charm automatically

master
Valentin Lab 5 years ago
parent
commit
aad1689c4e
  1. 11
      compose.yml

11
compose.yml

@ -16,13 +16,10 @@ mydomain.org:
#domain: mydomain.org
#server-aliases:
# - mydomain2.org
apache-custom-rules:
- |
## Auto-redirection from http to https
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L,QSA]
# apache-custom-rules:
# - |
# ## Apache special rules ?
# #
# ssl:
# letsencrypt:
# challenge-type: http ## if 'dns', be sure to prepare 'env' correctly

Loading…
Cancel
Save