Advertisement
Guest User

Apache 2 Config

a guest
Aug 28th, 2013
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerAdmin webmaster@localhost
  3.  
  4. DocumentRoot /path/to/app/public
  5.  
  6. ErrorLog ${APACHE_LOG_DIR}/error.log
  7.  
  8. # Possible values include: debug, info, notice, warn, error, crit,
  9. # alert, emerg.
  10. LogLevel warn
  11.  
  12. ProxyRequests Off
  13. <Proxy *>
  14. Order Allow,Deny
  15. Allow from all
  16. </Proxy>
  17.  
  18. <Proxy balancer://mycluster>
  19. BalancerMember http://localhost:9292
  20. BalancerMember http://192.168.1.2:9292
  21. </Proxy>
  22.  
  23. ProxyPass / balancer://mycluster lbmethod=byrequests
  24. ProxyPassReverse / balancer://mycluster
  25.  
  26. <Location /assets >
  27. ProxyPass !
  28. </Location>
  29.  
  30. <Location /favicon.ico >
  31. ProxyPass !
  32. </Location>
  33.  
  34. CustomLog ${APACHE_LOG_DIR}/access.log combined
  35. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement