blob: dcfbb5ce69593b92d3d1b7229466a6e15f774095 (
plain)
- <VirtualHost *:443>
- ServerName chat.example.com:443
- ServerAdmin webmaster@example.com
- DocumentRoot /var/www/vhosts/web-static/chat.example.com/
- Include conf-available/local-tls.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
- ServerName *.chat.example.com:443
- ServerName chat:443
- ServerName *.chat:443
- Include conf-available/local-tls.conf
- RewriteEngine On
- RewriteRule / https://chat.example.com/[R]
- # RewriteRule /(.*) https://chat.example.com/$1 [R]
- CustomLog ${APACHE_LOG_DIR}/redirect.log combined
- </VirtualHost>
- <VirtualHost *:80>
- ServerName chat.example.com
- ServerAlias *.chat.example.com
- ServerAlias chat
- ServerAlias *.chat
- RewriteEngine On
- RewriteRule / https://chat.example.com/ [R]
- # RewriteRule /(.*) https://chat.example.com/$1 [R]
- CustomLog ${APACHE_LOG_DIR}/redirect.log vhost_combined
- </VirtualHost>
|