I am trying to setup an Apache2 proxy from a subdomain to a port for mattermost.
I have downloaded the mattermost gzip file and extracted all files to /var/www/mattermost. I go to /var/www/mattermost/bin to run the platform script.
Going to http://mattermost.example.com gives me an Error 500 - Internal Server Error and I don’t know why. My apache2 config file is below but I just can’t figure out what is going wrong. I don’t get any error messages in the terminal output. Can anyone help?
<VirtualHost *:80>
ServerName mattermost.example.com
ServerAlias mattermost.example.com
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:8065/
ProxyPassReverse / http://localhost:8065/
</VirtualHost>
Thanks for your help @coreyhulen but that gives me an error in my log files:
AH01144: No protocol handler was valid for the URL /api/v1/websocket. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule
and I get a blue bar error message a few seconds after loading up the instance:
“We cannot reach the Mattermost service. The service may be down or misconfigured. Please contact an administrator to make sure the WebSocket port is configured properly.”
I have enabled tried to enable the proxy module like this:
Sorry, I’m not too familiar with apache, but I based on the error message we cannot establish a websocket connection to the mattermost server. Usually this means the connection cannot be upgraded from http:// to ws:// or https:// to wss://. The websocket connects on the same port. It starts off as the http protocol then gets upgraded to ws protocol.
I’m guessing somethings wrong with the following lines
Hi everyone.
I configured Mattermost and Apache2 proxy, according to your instructions (thanks!). Everything is working just fine, exept of one thing: When a user joins new channel, or is switching between channels, before she or he can write messages - channel is reloading (sometimes one time, sometinmes few times) with messages replaced by “Loading…”. It is quite annoying.
There was no such problem, when there was no proxying through Apache, just nginx with mattermost, so I think it is issue connected with Apache proxying. Maybe someone had similar problem and can help?