summaryrefslogtreecommitdiff
path: root/apache2/sites-available/chat.secure-example.com.conf
blob: 2eb69d48e671b1217ce98482c33d14cd2af5338d (plain)
  1. <VirtualHost *:443>
  2. ServerName chat.example.com:443
  3. ServerAdmin webmaster@example.com
  4. DocumentRoot /var/www/vhosts/web-static/chat.example.com/
  5. Include conf-available/local-ssl.conf
  6. Include conf.d/javascript-common.conf
  7. Include conf.d/local-jabber.conf
  8. # RewriteEngine On
  9. # RewriteRule ^/$ /xmppchat/ [R]
  10. Alias /jwchat /usr/share/jwchat/www
  11. <Location /jwchat>
  12. Options +Indexes +Multiviews +FollowSymLinks
  13. </Location>
  14. Alias /logs /var/www/vhosts/www-ejabberd/conference
  15. <Location /logs>
  16. Options Indexes
  17. DirectoryIndex index.html
  18. </Location>
  19. ErrorLog ${APACHE_LOG_DIR}/chat.example.com-error.log
  20. CustomLog ${APACHE_LOG_DIR}/chat.example.com-access.log combined
  21. </VirtualHost>
  22. <VirtualHost *:443>
  23. ServerName www.chat.example.com:443
  24. ServerName *.chat.example.com:443
  25. ServerName chat:443
  26. ServerName *.chat:443
  27. Include conf-available/local-ssl.conf
  28. RewriteEngine On
  29. RewriteRule / https://chat.example.com/[R]
  30. # RewriteRule /(.*) https://chat.example.com/$1 [R]
  31. CustomLog ${APACHE_LOG_DIR}/redirect.log combined
  32. </VirtualHost>
  33. <VirtualHost *:80>
  34. ServerName chat.example.com
  35. ServerAlias *.chat.example.com
  36. ServerAlias chat
  37. ServerAlias *.chat
  38. RewriteEngine On
  39. RewriteRule / https://chat.example.com/ [R]
  40. # RewriteRule /(.*) https://chat.example.com/$1 [R]
  41. CustomLog ${APACHE_LOG_DIR}/redirect.log vhost_combined
  42. </VirtualHost>