summaryrefslogtreecommitdiff
path: root/apache2/sites-available/lists.secure-example.com.conf
diff options
context:
space:
mode:
Diffstat (limited to 'apache2/sites-available/lists.secure-example.com.conf')
-rw-r--r--apache2/sites-available/lists.secure-example.com.conf39
1 files changed, 39 insertions, 0 deletions
diff --git a/apache2/sites-available/lists.secure-example.com.conf b/apache2/sites-available/lists.secure-example.com.conf
new file mode 100644
index 0000000..1dc7bc9
--- /dev/null
+++ b/apache2/sites-available/lists.secure-example.com.conf
@@ -0,0 +1,39 @@
+<VirtualHost *:443>
+ ServerName lists.example.com:443
+ ServerAlias lists
+ ServerAdmin webmaster@example.com
+ DocumentRoot /home/webmaster/public_websites/lists.example.com/
+
+ Include conf.d/local-ssl.conf
+ Include conf.d/local-log-vhosts.conf
+ Include conf.d/local-mailman.conf
+ Include conf.d/local-mailman-root.conf
+
+ ErrorLog ${APACHE_LOG_DIR}/lists.example.com-error.log
+ CustomLog ${APACHE_LOG_DIR}/lists.example.com-access.log combined
+</VirtualHost>
+<VirtualHost *:443>
+ ServerName www.lists.example.com:443
+ ServerName *.lists.example.com:443
+
+ Include conf.d/local-ssl.conf
+ Include conf.d/local-log-origin.conf
+
+ RewriteEngine On
+ RewriteRule / https://lists.example.com/ [R]
+# RewriteRule /(.*) https://lists.example.com/$1 [R]
+
+ CustomLog ${APACHE_LOG_DIR}/redirect.log origin
+</VirtualHost>
+<VirtualHost *:80>
+ ServerName lists.example.com
+ ServerAlias *.lists.example.com
+
+ Include conf.d/local-log-origin.conf
+
+ RewriteEngine On
+ RewriteRule / https://lists.example.com/ [R]
+# RewriteRule /(.*) https://lists.example.com/$1 [R]
+
+ CustomLog ${APACHE_LOG_DIR}/redirect.log origin
+</VirtualHost>