Skip to content

Instantly share code, notes, and snippets.

@hufon
Created May 18, 2016 09:09
Show Gist options
  • Save hufon/26b18cfb49197e8eaca96524d93f2663 to your computer and use it in GitHub Desktop.
Save hufon/26b18cfb49197e8eaca96524d93f2663 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
DocumentRoot "var/www"
ServerName formation.liferay
<Location /manager>
SetHandler balancer-manager
Allow from all
</Location>
<Proxy balancer://liferay>
BalancerMember "http://<serveur1>:8080/"
BalancerMember "http://<serveur2>:8081/"
ProxySet lbmethod=byrequests
</Proxy>
ProxyPass /manager !
ProxyPass / balancer://liferay/
ProxyPassReverse / balancer://liferay/
ProxyPreserveHost On
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment