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