From d082bc085f250d7a2915c295ec4bb7aa0eee9f7e Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 22 Apr 2012 14:52:59 -0400 Subject: Add sample apache host snippet chat.secure-example.com. --- apache2/sites-available/chat.secure-example.com | 56 +++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 apache2/sites-available/chat.secure-example.com (limited to 'apache2') 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 @@ + + 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 + + Options +Indexes +Multiviews +FollowSymLinks + + Alias /logs /var/www/vhosts/www-ejabberd/conference + + Options Indexes + DirectoryIndex index.html + + + ErrorLog ${APACHE_LOG_DIR}/chat.example.com-error.log + CustomLog ${APACHE_LOG_DIR}/chat.example.com-access.log combined + + + 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 + + + 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 + -- cgit v1.2.3