Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25778

Mattermost Apache Configuration

$
0
0

Thanks for jumping in.

I changed the port for apache to 8080 in my VirtualHost. It now looks like this in my 000-default.conf:

<VirtualHost *:80>
ServerName my.coolhost.com
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/my.coolhost.com.error.log
CustomLog ${APACHE_LOG_DIR}/my.coolhost.com.access.log combined
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}:8080/
</VirtualHost>

and in the default-ssl.conf it looks like this:

<VirtualHost default:8080>
ServerName my.coolhost.com
DocumentRoot /var/www/html

	ErrorLog ${APACHE_LOG_DIR}/my.coolhost.com.error.log
	CustomLog ${APACHE_LOG_DIR}/my.coolhost.com.access.log combined
	SSLEngine on
	SSLCertificateFile	/very/secret/directory/my.crt
	SSLCertificateKeyFile /very/secret/directory/my.key
	SSLCertificateChainFile /very/secret/directory/my.bundle

<FilesMatch "\.(cgi|shtml|phtml|php)$">
	SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
	SSLOptions +StdEnvVars
</Directory>
	BrowserMatch "MSIE [2-6]" \
	nokeepalive ssl-unclean-shutdown \
		downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
	BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>

I changed the port in the config.json to 8080 and I don't see anything in the config.json that has a 0.0.0.0 for me to change so I didn't attempt anything with that. I then forwarded the port 8080 from the router to the server. Same result - SSL_ERROR_RX_RECORD_TOO_LONG.

I'm not sure if this is what you want me to do. Honestly I don't even know if approaching this correctly. Without SSL I see the Signup page fine for Mattermost with these settings.


Viewing all articles
Browse latest Browse all 25778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>