Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerAdmin webmaster@localhost
- DocumentRoot /path/to/app/public
- ErrorLog ${APACHE_LOG_DIR}/error.log
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel warn
- ProxyRequests Off
- <Proxy *>
- Order Allow,Deny
- Allow from all
- </Proxy>
- <Proxy balancer://mycluster>
- BalancerMember http://localhost:9292
- BalancerMember http://192.168.1.2:9292
- </Proxy>
- ProxyPass / balancer://mycluster lbmethod=byrequests
- ProxyPassReverse / balancer://mycluster
- <Location /assets >
- ProxyPass !
- </Location>
- <Location /favicon.ico >
- ProxyPass !
- </Location>
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement