Advertisement
Guest User

Untitled

a guest
Aug 19th, 2016
623
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerAdmin webmaster@localhost
  3. ServerName mattermost.MONDOMAINE.fr
  4. ServerAlias mattermost
  5.  
  6. ProxyPreserveHost On
  7. ProxyRequests Off
  8. ProxyPass / http://127.0.0.1:8065/
  9. ProxyPassReverse / http://127.0.0.1:8065/
  10.  
  11. RewriteEngine on
  12. RewriteCond %{REQUEST_URI} ^/api/v1/websocket [NC,OR]
  13. RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
  14. RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
  15. RewriteRule .* ws://127.0.0.1:8065%{REQUEST_URI} [P,QSA,L]
  16. RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  17. RewriteRule .* http://127.0.0.1:8065%{REQUEST_URI} [P,QSA,L]
  18.  
  19. <Location /api/v1/websocket>
  20. Require all granted
  21. ProxyPassReverse http://127.0.0.1:8065
  22. ProxyPassReverseCookieDomain 127.0.0.1 mattermost.MONDOMAINE.fr
  23. </Location>
  24. <Location />
  25. Require all granted
  26. ProxyPassReverse http://127.0.0.1:8065
  27. ProxyPassReverseCookieDomain 127.0.0.1 mattermost MONDOMAINE.fr
  28. </Location>
  29.  
  30. ###############
  31.  
  32. ErrorLog ${APACHE_LOG_DIR}/error_mattermost.log
  33.  
  34. # Possible values include: debug, info, notice, warn, error, crit,
  35. # alert, emerg.
  36. LogLevel warn
  37.  
  38. CustomLog ${APACHE_LOG_DIR}/access_mattermost.log combine
  39. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement