summaryrefslogtreecommitdiffstats
path: root/server/setup/05-service-settings/etc/apache2/acme-and-redirect.conf
blob: 60a41a6152300d1428f2756a8d12b5a6520e3af8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Alias "/.well-known/acme-challenge/" "/srv/www/jogamp.org/.well-known/acme-challenge/"
<Directory "/srv/www/jogamp.org/.well-known/acme-challenge/">
    Require all granted
</Directory>

RewriteCond %{REQUEST_URI} ^/\.well-known/acme-challenge/.*
RewriteRule ^ - [L]

# RewriteEngine On
# RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/.*
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L,R=301]

# Install letsencrypt `certbot` and create cert via `certbot certonly` 
# using webroot `/srv/www/jogamp.org` for cert `jogamp.org mail.jogamp.org`.
# Then ensure to reload apache, restart sendmail, dovecot etc via
# /etc/letsencrypt/renewal-hooks/deploy scripts.