I have installed apache2, enabled ssl, rewrite, proxy, and proxy_http modules, pasted this configuration to /etc/apache2/conf-available/maas.conf (replaced .crt and .key files with my own pair) and enabled it usinga2enconf maas.conf. Now I can login MAAS via ssl, but the dashboard remains empty with a "Connecting... Unable to connect to: wss://" message. What did I miss?

  • It worked after I enabled the mod_proxy_wstunnel using the command 'a2enmod proxy_wstunnel' – cody Jan 21 '19 at 3:04
  • Hello,you can convert your comment into an answer and accept it. – pa4080 Jan 21 '19 at 7:59
  • @pa4080 done :-) – cody Jan 22 '19 at 21:06

The following modules are needed in order for Apache SSL reverse proxy to work with MAAS (2.4):

  • ssl
  • rewrite
  • proxy
  • proxy_http
  • proxy_wstunnel

So the command is sudo a2enmod ssl rewrite proxy proxy_http proxy_wstunnel

Then restart Apache sudo systemctl restart apache2

Note: Use a .crt file for the SSLCertificateFile directive as it may not work properly with .pem in DER format.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.