Files
configpolicy/roles/websites/hatchlearningcenter.org/files/hatchlearningcenter.org.httpd.conf
Dustin C. Hatch 541dd625b5 r/web/hlc: Proxy for Enrollment 2024 form
The summer 2024 enrollment form is more complicated than the other
forms on the HLC site, as it integrates directly with Invoice Ninja.  As
such, it's handled by a different backend, which runs in Kubernetes.
2024-04-02 09:25:47 -05:00

72 lines
2.2 KiB
ApacheConf

# vim: set ft=apache sw=4 ts=4 sts=4 et :
<VirtualHost *:80>
ServerName hatchlearningcenter.org
ServerAlias \
www.hatchlearningcenter.org \
hatchlearningcenter.com \
www.hatchlearningcenter.com \
hlcks.org \
www.hlcks.org \
hlcks.com \
www.hlcks.com \
hlckc.org \
www.hlckc.org \
hlckc.com \
www.hlckc.com
RewriteEngine on
RewriteRule /.* https://%{SERVER_NAME}$0 [R=301,L]
</VirtualHost>
<VirtualHost _default_:443>
ServerName hatchlearningcenter.org
ServerAlias \
hatchlearningcenter.com \
www.hatchlearningcenter.com \
hlcks.org \
www.hlcks.org \
hlcks.com \
www.hlcks.com \
hlckc.org \
www.hlckc.org \
hlckc.com \
www.hlckc.com
Include conf.d/ssl.include
SSLCertificateFile /etc/pki/tls/certs/hatchlearningcenter.org.cer
SSLCertificateKeyFile /etc/pki/tls/private/hatchlearningcenter.org.key
SSLCertificateChainFile /etc/pki/tls/certs/hatchlearningcenter.org.cer
Header always set \
Strict-Transport-Security "max-age=63072000; includeSubDomains"
RewriteEngine On
RewriteRule /.* https://www.hatchlearningcenter.org$0 [R=301,L]
</VirtualHost>
<VirtualHost _default_:443>
ServerName www.hatchlearningcenter.org
Include conf.d/ssl.include
SSLCertificateFile /etc/pki/tls/certs/hatchlearningcenter.org.cer
SSLCertificateKeyFile /etc/pki/tls/private/hatchlearningcenter.org.key
SSLCertificateChainFile /etc/pki/tls/certs/hatchlearningcenter.org.cer
Header always set \
Strict-Transport-Security "max-age=63072000; includeSubDomains"
SSLProxyEngine On
RewriteEngine On
RewriteRule /submit/attendance http://127.0.0.1:8000/hlc-attendance [P]
RewriteRule /submit/signup http://127.0.0.1:8000/hlc-signup [P]
RewriteRule /submit/summer2024 http://127.0.0.1:8000/hlc-summer2024 [P]
RewriteRule /submit/enrollment2024 https://hlcforms.pyrocufflink.blue/submit/enrollment2024 [P]
DocumentRoot /srv/www/hatchlearningcenter.org/htdocs
<Directory /srv/www/hatchlearningcenter.org/htdocs>
Require all granted
</Directory>
</VirtualHost>