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 at 3:04
  • Hello,you can convert your comment into an answer and accept it. – pa4080 Jan 21 at 7:59
  • @pa4080 done :-) – cody Jan 22 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.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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