Any suggestions on how to simplify my httpd.conf file? I've stripped out everything but the relevant portions:
Listen <ip-addr-1>:80
Listen <ip-addr-1>:443
<VirtualHost <ip-addr-1>:80>
ServerName myservername.com
<Proxy balancer://mycluster>
BalancerMember http://172.22.22.20
BalancerMember http://172.22.22.21
</Proxy>
ProxyPass /app1 balancer://mycluster/app1
ProxyPassReverse /app1 balancer://mycluster/app1
</VirtualHost>
# Repeat for 443
<VirtualHost <ip-addr-1>:443>
ServerName myservername.com
SSLEngine On
SSLCertificateFile conf/ssl/mycert.crt
SSLCertificateKeyFile conf/ssl/mycert.key
SSLCACertificateFile conf/ssl/intermediate.crt
<Proxy balancer://mycluster>
BalancerMember http://172.22.22.20
BalancerMember http://172.22.22.21
</Proxy>
ProxyPass /app1 balancer://mycluster/app1
ProxyPassReverse /app1 balancer://mycluster/app1
</VirtualHost>
Is there anyway to not repeat everything for port 80 and 443, but turn on ssl for 443?