Created
July 26, 2018 17:24
-
-
Save filipecifali/068725a5aad982290a5dbcf2b0e87345 to your computer and use it in GitHub Desktop.
letsencrypt apache/httpd 2 rewrite
This file contains hidden or 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
<Directory /usr/share/zabbix> | |
RewriteEngine On | |
RewriteBase / | |
# Dont redirect on challenges | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteCond %{REQUEST_URI} ^/.well-known/acme-challenge | |
RewriteRule ^(.*) - [R=301,L] | |
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge | |
RewriteRule ^(.*) https://example.com/$1 [R=301,L] | |
</Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment