summaryrefslogtreecommitdiff
path: root/apache2
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2012-04-22 14:52:59 -0400
committerJonas Smedegaard <dr@jones.dk>2012-04-22 14:52:59 -0400
commitd082bc085f250d7a2915c295ec4bb7aa0eee9f7e (patch)
tree96bbe1a059adf86de304e934e879da6f43b77294 /apache2
parent4a26e197fcc7db3b77a08eaa61163631ba03112a (diff)
Add sample apache host snippet chat.secure-example.com.
Diffstat (limited to 'apache2')
-rw-r--r--apache2/sites-available/chat.secure-example.com56
1 files changed, 56 insertions, 0 deletions
diff --git a/apache2/sites-available/chat.secure-example.com b/apache2/sites-available/chat.secure-example.com
new file mode 100644
index 0000000..3e07f00
--- /dev/null
+++ b/apache2/sites-available/chat.secure-example.com
@@ -0,0 +1,56 @@
+<VirtualHost *:443>
+ ServerName chat.example.com:443
+ ServerAdmin webmaster@example.com
+ DocumentRoot /var/www/vhosts/web-static/chat.example.com/
+
+ Include conf.d/local-ssl.conf
+ Include conf.d/javascript-common.conf
+ Include conf.d/local-jabber.conf
+
+# RewriteEngine On
+# RewriteRule ^/$ /xmppchat/ [R]
+
+ Alias /jwchat /usr/share/jwchat/www
+ <Location /jwchat>
+ Options +Indexes +Multiviews +FollowSymLinks
+ </Location>
+ Alias /logs /var/www/vhosts/www-ejabberd/conference
+ <Location /logs>
+ Options Indexes
+ DirectoryIndex index.html
+ </Location>
+
+ ErrorLog ${APACHE_LOG_DIR}/chat.example.com-error.log
+ CustomLog ${APACHE_LOG_DIR}/chat.example.com-access.log combined
+</VirtualHost>
+<VirtualHost *:443>
+ ServerName www.chat.example.com:443
+ ServerAlias *.chat.example.com:443
+ ServerAlias chat:443
+ ServerAlias *.chat:443
+ ServerAdmin webmaster@example.com
+
+ Include conf.d/local-ssl.conf
+ Include conf.d/local-log-origin.conf
+
+ RewriteEngine On
+ RewriteRule / https://chat.example.com/[R]
+# RewriteRule /(.*) https://chat.example.com/$1 [R]
+
+ CustomLog ${APACHE_LOG_DIR}/redirect.log origin
+</VirtualHost>
+<VirtualHost *:80>
+ ServerName www.chat.example.com
+ ServerAlias *.chat.example.com
+ ServerAlias chat
+ ServerAlias *.chat
+ ServerAdmin webmaster@example.com
+
+ Include conf.d/local-log-origin.conf
+
+ RewriteEngine On
+ RewriteRule / https://chat.example.com/ [R]
+# RewriteRule /(.*) https://chat.example.com/$1 [R]
+
+ CustomLog ${APACHE_LOG_DIR}/redirect.log origin
+</VirtualHost>