Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerAdmin webmaster@localhost
- ServerName mattermost.MONDOMAINE.fr
- ServerAlias mattermost
- ProxyPreserveHost On
- ProxyRequests Off
- ProxyPass / http://127.0.0.1:8065/
- ProxyPassReverse / http://127.0.0.1:8065/
- RewriteEngine on
- RewriteCond %{REQUEST_URI} ^/api/v1/websocket [NC,OR]
- RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
- RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
- RewriteRule .* ws://127.0.0.1:8065%{REQUEST_URI} [P,QSA,L]
- RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
- RewriteRule .* http://127.0.0.1:8065%{REQUEST_URI} [P,QSA,L]
- <Location /api/v1/websocket>
- Require all granted
- ProxyPassReverse http://127.0.0.1:8065
- ProxyPassReverseCookieDomain 127.0.0.1 mattermost.MONDOMAINE.fr
- </Location>
- <Location />
- Require all granted
- ProxyPassReverse http://127.0.0.1:8065
- ProxyPassReverseCookieDomain 127.0.0.1 mattermost MONDOMAINE.fr
- </Location>
- ###############
- ErrorLog ${APACHE_LOG_DIR}/error_mattermost.log
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel warn
- CustomLog ${APACHE_LOG_DIR}/access_mattermost.log combine
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement