76 lines
2.3 KiB
Plaintext
76 lines
2.3 KiB
Plaintext
<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>
|