Files
configpolicy/roles/websites/dustinandtabitha.com/files/dustinandtabitha.httpd.conf
Dustin C. Hatch f5ab739c9e websites: dustinandtabitha: Switch to mod_md for cert
The _dustinandtabitha.com_ site now obtains its certificate from Let's
Encrypt using the Apache _mod_md_ (managed domain) module.  This
dramatically simplifies the deployment of this certificate, eliminating
the need for _cert-manager_ to obtain it, _cert-exporter_ to add it to
_certs.git_, and Jenkins to push it out to the web server.
2025-08-11 10:34:30 -05:00

30 lines
684 B
Plaintext

MDomain dustinandtabitha.com
<VirtualHost _default_:80>
ServerName dustinandtabitha.com
ServerAlias www.dustinandtabitha.com
RewriteEngine On
RewriteRule (.*) https://%{SERVER_NAME}$1 [R=301,L]
</VirtualHost>
<VirtualHost _default_:443>
ServerName dustinandtabitha.com
ServerAlias www.dustinandtabitha.com
Include conf.d/ssl.include
<IfModule mod_headers.c>
Header always set \
Strict-Transport-Security "max-age=63072000; includeSubDomains"
</IfModule>
RewriteEngine On
RewriteRule /submit/rsvp http://127.0.0.1:8000/weddingrsvp [P]
DocumentRoot /srv/www/dustinandtabitha/htdocs
<Directory /srv/www/dustinandtabitha/htdocs>
Require all granted
</Directory>
</VirtualHost>