Update apache config to be generic.

This commit is contained in:
Otho 2023-04-14 23:36:34 -04:00
parent a95ffd8f89
commit 0485324578
Signed by: Otho
GPG Key ID: 16C720CD3BBE21D9

View File

@ -1,9 +1,9 @@
ServerName othostash.com ServerName ${domain}
ServerRoot /usr/local ServerRoot /usr/local
Listen [2603:3015:1003:56cd::dad:db]:80 Listen [${subnet}${db_addr}]:80
Listen [2603:3015:1003:56cd::dad:db]:443 Listen [${subnet}${db_addr}]:443
Listen 10.1.9.10:443 Listen ${db_ipv4_int_addr}:443
LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
LoadModule authn_file_module libexec/apache24/mod_authn_file.so LoadModule authn_file_module libexec/apache24/mod_authn_file.so
@ -52,19 +52,19 @@ Group www
</Directory> </Directory>
MDCertificateAgreement accepted MDCertificateAgreement accepted
MDContactEmail admin@othostash.com MDContactEmail admin@${domain}
MDomain othostash.com www.othostash.com MDomain ${domain} www.${domain}
# <VirtualHost [2603:3015:1003:56cd::dad:feed]:443> # <VirtualHost [${subnet}${feed_addr}]:443>
# ServerName "plex.othostash.com" # ServerName "plex.${domain}"
# SSLEngine on # SSLEngine on
# ProxyPass "/" "http://localhost:32400" # ProxyPass "/" "http://localhost:32400"
# ProxyPassReverse "/" "http://localhost:32400" # ProxyPassReverse "/" "http://localhost:32400"
# </VirtualHost> # </VirtualHost>
<VirtualHost 10.1.9.10:443 [2603:3015:1003:56cd::dad:db]:443> <VirtualHost [${subnet}${db_addr}]:443 ${db_ipv4_int_addr}:443>
ServerName "www.othostash.com" ServerName "www.${domain}"
ServerName "othostash.com" ServerName "${domain}"
<Location "/md-status"> <Location "/md-status">
SetHandler md-status SetHandler md-status