Created
July 25, 2017 07:24
-
-
Save aduzsardi/2201ed65100fa7f808e38ca9af6d4dc5 to your computer and use it in GitHub Desktop.
Load balancing apache config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:443> | |
LoadModule slotmem_shm_module /usr/lib/apache2/modules/mod_slotmem_shm.so | |
LoadModule proxy_balancer_module /usr/lib/apache2/modules/mod_proxy_balancer.so | |
LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so | |
ServerName dev.mydomain.com | |
<Proxy "balancer://mycluster"> | |
BalancerMember "http://10.0.0.167:9090" | |
BalancerMember "http://10.0.0.168:9090" | |
</Proxy> | |
<Location /> | |
ProxyPass "balancer://mycluster" | |
Require ip 10.0.0.0/24 | |
Require ip 192.168.0.0/24 | |
</Location> | |
SSLEngine On | |
SSLCertificateFile /etc/apache2/ssl/dev.crt | |
SSLCertificateKeyFile /etc/apache2/ssl/dev.key | |
SSLCertificateChainFile /etc/apache2/ssl/intermediate.crt | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment