summaryrefslogtreecommitdiff
path: root/apache2/sites-available/chat.secure-example.com
blob: 3e07f009c48a7c7ee5be59493f50caa698d54029 (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.d/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. ServerAlias *.chat.example.com:443
  25. ServerAlias chat:443
  26. ServerAlias *.chat:443
  27. ServerAdmin webmaster@example.com
  28. Include conf.d/local-ssl.conf
  29. Include conf.d/local-log-origin.conf
  30. RewriteEngine On
  31. RewriteRule / https://chat.example.com/[R]
  32. # RewriteRule /(.*) https://chat.example.com/$1 [R]
  33. CustomLog ${APACHE_LOG_DIR}/redirect.log origin
  34. </VirtualHost>
  35. <VirtualHost *:80>
  36. ServerName www.chat.example.com
  37. ServerAlias *.chat.example.com
  38. ServerAlias chat
  39. ServerAlias *.chat
  40. ServerAdmin webmaster@example.com
  41. Include conf.d/local-log-origin.conf
  42. RewriteEngine On
  43. RewriteRule / https://chat.example.com/ [R]
  44. # RewriteRule /(.*) https://chat.example.com/$1 [R]
  45. CustomLog ${APACHE_LOG_DIR}/redirect.log origin
  46. </VirtualHost>