MythicSalt/states/mailman/lists.lunch.org.uk.conf

76 lines
2.3 KiB
Plaintext
Raw Normal View History

2023-05-22 17:09:38 +01:00
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName lists.cryhavoc.org.uk
ErrorLog /var/log/apache2/lists-error.log
CustomLog /var/log/apache2/lists-access.log combined
RemoteIPProxyProtocol On
Alias /mailman3/favicon.ico /var/lib/mailman3/web/static/postorius/img/favicon.ico
Alias /mailman3/static /var/lib/mailman3/web/static
<Directory "/var/lib/mailman3/web/static">
Require all granted
</Directory>
<IfModule mod_proxy_uwsgi.c>
ProxyPass /mailman3/favicon.ico !
ProxyPass /mailman3/static !
ProxyPass / unix:/run/mailman3-web/uwsgi.sock|uwsgi://localhost/
</IfModule>
SSLEngine on
SSLCertificateFile /var/local/certificates/lists.lunch.org.uk/fullchain.pem
SSLCertificateKeyFile /var/local/certificates/lists.lunch.org.uk/privkey.pem
</VirtualHost>
</IfModule>
<VirtualHost *:443>
ServerName lists.lunch.org.uk
ErrorLog /var/log/apache2/lists-error.log
CustomLog /var/log/apache2/lists-access.log combined
RemoteIPProxyProtocol On
<IfModule rewrite_module>
#
# This redirects all accesses to the HTTPS version of the site.
#
RewriteEngine On
RewriteRule ^/?(.*) https://lists.cryhavoc.org.uk/$1 [R=301,L]
</IfModule>
SSLEngine on
SSLCertificateFile /var/local/certificates/lists.lunch.org.uk/fullchain.pem
SSLCertificateKeyFile /var/local/certificates/lists.lunch.org.uk/privkey.pem
</VirtualHost>
<VirtualHost *:80>
ServerName lists.cryhavoc.org.uk
ServerAlias lists.lunch.org.uk
ErrorLog /var/log/apache2/lists-error.log
CustomLog /var/log/apache2/lists-access.log combined
RemoteIPProxyProtocol On
<Directory /var/www-cryhavoc>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
Require all granted
</Directory>
<IfModule rewrite_module>
#
# This redirects all accesses to the HTTPS version of the site.
#
RewriteEngine On
RewriteRule ^/?(.*) https://lists.cryhavoc.org.uk/$1 [R=301,L]
</IfModule>
</VirtualHost>