Vor ein paar Wochen stolperte ich über mod_md
- geil! Kein certbot, kein dehydrated - Apache macht alles selber.
POC:
MDContactEmail webmaster@sokoll.com
MDCertificateAgreement accepted
MDomain ionos-1.sokoll.com
<VirtualHost 74.208.189.173:80>
ServerName ionos-1.sokoll.com
ServerAdmin webmaster@sokoll.com
RedirectMatch permanent ^/(.*) https://ionos-1.sokoll.com/$1
ErrorLog ${APACHE_LOG_DIR}/ionos-1.sokoll.com-error.log
CustomLog ${APACHE_LOG_DIR}/ionos-1.sokoll.com-access.log combined
</VirtualHost>
<VirtualHost 74.208.189.173:443>
ServerName ionos-1.sokoll.com
DocumentRoot /var/www/html
Protocols h2 http/1.1 acme-tls/1
SSLEngine on
ErrorLog ${APACHE_LOG_DIR}/ionos-1.sokoll.com-error.log
CustomLog ${APACHE_LOG_DIR}/ionos-1.sokoll.com-access.log combined
</VirtualHost>
Das ist alles!
Sehrsehr geil