Apache Config Update
0 removals
Words removed | 0 |
Total words | 105 |
Words removed (%) | 0.00 |
23 lines
1 addition
Words added | 2 |
Total words | 107 |
Words added (%) | 1.87 |
24 lines
<VirtualHost *:80>
<VirtualHost *:80>
#ServerName directive specifies the URL that the configuration listens for. This is the section that tells the user's web browser what website to return when someone has navigated to your domain.
#ServerName directive specifies the URL that the configuration listens for. This is the section that tells the user's web browser what website to return when someone has navigated to your domain.
ServerName mat.invisiblenotes.com
ServerName mat.invisiblenotes.com
#ServerAdmin specifies the email to be displayed on all error pages shown to users as
#ServerAdmin specifies the email to be displayed on all error pages shown to users as
#the support email for the domain.
#the support email for the domain.
ServerAdmin email@mydomain.com
ServerAdmin email@mydomain.com
DocumentRoot /var/www/html
#Reverse proxy configuration for Mattermost WebSockets and HTTP/HTTPS requests.
#Reverse proxy configuration for Mattermost WebSockets and HTTP/HTTPS requests.
ProxyPreserveHost On
ProxyPreserveHost On
# Set web sockets
# Set web sockets
RewriteEngine On
RewriteEngine On
RewriteCond %{REQUEST_URI} /api/v[0-9]+/(users/)?websocket [NC,OR]
RewriteCond %{REQUEST_URI} /api/v[0-9]+/(users/)?websocket [NC,OR]
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* ws://127.0.0.1:8065%{REQUEST_URI} [P,QSA,L]
RewriteRule .* ws://127.0.0.1:8065%{REQUEST_URI} [P,QSA,L]
<Location />
<Location />
Require all granted
Require all granted
ProxyPass http://127.0.0.1:8065/
ProxyPass http://127.0.0.1:8065/
ProxyPassReverse http://127.0.0.1:8065/
ProxyPassReverse http://127.0.0.1:8065/
ProxyPassReverseCookieDomain 127.0.0.1 mat.invisiblenotes.com
ProxyPassReverseCookieDomain 127.0.0.1 mat.invisiblenotes.com
</Location>
</Location>
</VirtualHost>
</VirtualHost>