Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

1 total

Apache + mongrel_cluster VirtualHost snippet

Put it in yr httpd.conf, or better yet, an included file. (that thing is monstrous as is)

<VirtualHost *:80>
	ServerName test.com
	DirectoryIndex index.html dispatch.fcgi
	DocumentRoot /domains/test.com/web/public
	RewriteEngine On
	RewriteRule ^(.*/)?.svn/ - [F,L]
	ProxyPass /images !
	ProxyPass /stylesheets !
	ProxyPass /javascripts !
	ProxyPass /examples !
	ProxyPass /map_data !
	ProxyPass /engine_files !
	ProxyPass /javascript !
	ProxyPass /feregions !
	ProxyPass / balancer://test/
	ProxyPassReverse / balancer://test
	ProxyPreserveHost On
	ErrorLog /opt/csw/apache2/var/log/test.com.error
	CustomLog /opt/csw/apache2/var/log/test.com common

	<Proxy balancer://test>
		BalancerMember http://127.0.0.1:8000
		BalancerMember http://127.0.0.1:8001
		BalancerMember http://127.0.0.1:8002
		BalancerMember http://127.0.0.1:8003
		BalancerMember http://127.0.0.1:8004
	</Proxy>
</VirtualHost>
1 total