Here is the configuration for apache2:
<VirtualHost *:443> SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache2.crt SSLCertificateKeyFile /etc/apache2/ssl/apache2.key
RewriteEngine On RewriteCond %{REQUEST_URI} ^/MAAS/ws [NC] RewriteRule /(.*) ws://localhost:5240/MAAS/ws [P,L]
ProxyPreserveHost On ProxyPass / http://localhost:5240/ ProxyPassReverse / http://localhost:5240/ </VirtualHost>
Here is the configuration for apache2:
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/apache2/ ssl/apache2. crt KeyFile /etc/apache2/ ssl/apache2. key
SSLCertificate
RewriteEngine On 5240/MAAS/ ws [P,L]
RewriteCond %{REQUEST_URI} ^/MAAS/ws [NC]
RewriteRule /(.*) ws://localhost:
ProxyPass / http://
</VirtualHost>