Apache Configuration
Everyone in the group cnetsadm has sudo privilege to modify /etc/httpd/conf/httpd.conf
We use virtual hosting to provide web server to several sites. Note that unrecognized HTTP requests default to the CNETS site.
GiveALink.org is set up to be served using mod_proxy to distribute requests across a cluster of 16 mongrel servers. One gotcha about this configuration is Proxy Pass. In order for this to work:
- Proxy must be enabled
- Proxy Pass and Reverse Proxy Pass must be defined
- The Proxy restrictions must be set
<VirtualHost *:80>
ServerName givealink.org ServerAdmin jburgoon@indiana.edu ServerAlias givealink www.givealink.org *.givealink.org <Proxy balancer://gal_mongrel_cluster> BalancerMember http://localhost:3000/ BalancerMember http://localhost:3001/ BalancerMember http://localhost:3002/ BalancerMember http://localhost:3003/ BalancerMember http://localhost:3004/ BalancerMember http://localhost:3005/ BalancerMember http://localhost:3006/ BalancerMember http://localhost:3007/ BalancerMember http://localhost:3008/ BalancerMember http://localhost:3009/ BalancerMember http://localhost:3010/ BalancerMember http://localhost:3011/ BalancerMember http://localhost:3012/ BalancerMember http://localhost:3013/ BalancerMember http://localhost:3014/ BalancerMember http://localhost:3015/ </Proxy> ProxyPass / balancer://gal_mongrel_cluster/ ProxyPassReverse / balancer://gal_mongrel_cluster/ ErrorLog logs/givealink.smithers.cs.indiana.edu-error_log CustomLog logs/givealink.smithers.cs.indiana.edu-access_log common
</VirtualHost>