Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_apache2_sites-available_rocketchat.j2 1.1KB

1234567891011121314151617181920212223242526272829
  1. <VirtualHost *:80>
  2. ServerName {{ rocketchat_subdomain }}.{{ item.name }}
  3. Redirect temp / https://{{ rocketchat_subdomain }}.{{ item.name }}/
  4. </VirtualHost>
  5. <VirtualHost *:443>
  6. ServerName {{ rocketchat_subdomain }}.{{ item.name }}
  7. SSLEngine On
  8. Options -Indexes
  9. HostnameLookups Off
  10. LogLevel warn
  11. ErrorLog /var/log/apache2/rocketchat.info-error_log
  12. CustomLog /var/log/apache2/rocketchat.info-access_log common
  13. RewriteEngine On
  14. RewriteCond %{HTTP:CONNECTION} Upgrade [NC]
  15. RewriteCond %{HTTP:Upgrade} =websocket [NC]
  16. RewriteRule /(.*) ws://localhost:{{ rocketchat_internal_port }}/$1 [P,L]
  17. RewriteCond %{HTTP:Upgrade} !=websocket [NC]
  18. RewriteRule /(.*) http://localhost:{{ rocketchat_internal_port }}/$1 [P,L]
  19. ProxyRequests Off
  20. ProxyPreserveHost On
  21. ProxyPass / http://localhost:{{ rocketchat_internal_port }}/
  22. ProxyPassReverse / http://localhost:{{ rocketchat_internal_port }}/
  23. </VirtualHost>