Apache HTTPD config generator

http vhost redirect to https vhost to mod_cluster

vhost:

vhost name: {{server.name}}

<VirtualHost *:80>
ServerName {{server.name}}
Redirect / https://{{server.name}}/
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</VirtualHost>

<VirtualHost *:443>
ServerName {{server.name}}
ProxyRequests Off
SSLEngine on
SSLProxyEngine On
SSLCertificateFile D:\jboss-ews-2.0\etc\ssl\certs\{{server.name}}.crt
SSLCertificateKeyFile D:\jboss-ews-2.0\etc\ssl\private\{{server.name}}.key
ProxyPass / http://localhost:6666/
ProxyPassReverse / http://localhost:6666/
</VirtualHost>