summaryrefslogtreecommitdiff
path: root/apache2/sites-available/users.secure-example.com
diff options
context:
space:
mode:
Diffstat (limited to 'apache2/sites-available/users.secure-example.com')
-rw-r--r--apache2/sites-available/users.secure-example.com42
1 files changed, 42 insertions, 0 deletions
diff --git a/apache2/sites-available/users.secure-example.com b/apache2/sites-available/users.secure-example.com
new file mode 100644
index 0000000..0d11b17
--- /dev/null
+++ b/apache2/sites-available/users.secure-example.com
@@ -0,0 +1,42 @@
+<VirtualHost *:80>
+ ServerName users.example.com
+ ServerAlias users
+ ServerAdmin webmaster@example.com
+ DocumentRoot /home/webmaster/public_websites/users.example.com/
+
+ Include /etc/apache2/conf.d/local-userdir.conf
+ Include /etc/apache2/conf.d/local-macvolumes.conf
+
+ RewriteEngine On
+ RewriteRule ^/-(.*)$ http://users.example.com/~$1 [R]
+ RewriteRule ^/([^~].*)$ http://users.example.com/~$1 [R]
+
+ ErrorLog /var/log/apache2/users.kaospilot.no-error.log
+ CustomLog /var/log/apache2/mail.dgi-huset.dk-access.log combined
+</VirtualHost>
+<VirtualHost *:80>
+ ServerName www.users.example.com
+ ServerAlias *.users.example.com
+ ServerAdmin webmaster@example.com
+
+ RewriteEngine On
+ RewriteRule / http://users.example.com/ [R]
+# RewriteRule /(.*) http://users.example.com/$1 [R]
+
+ TransferLog /dev/null
+</VirtualHost>
+<VirtualHost *:443>
+ ServerName users.example.com:443
+ ServerAlias *.users.example.com:443
+ ServerAlias users:443
+ ServerAlias *.users:443
+ ServerAdmin webmaster@example.com
+
+ Include /etc/apache2/conf.d/local-ssl.conf
+
+ RewriteEngine On
+ RewriteRule / http://users.example.com/ [R]
+# RewriteRule /(.*) http://users.example.com/$1 [R]
+
+ TransferLog /dev/null
+</VirtualHost>