Apache Config Update
23 Zeilen
<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>