# zena apache2 setup for <%= config[:balancer] %>
# automatically generated file
NameVirtualHost *
<% if config[:app_type] == :passenger %>
LoadModule upload_progress_module /usr/lib/apache2/modules/mod_upload_progress.so
PassengerDefaultUser www-data
<% elsif config[:app_type] == :mongrel %>
Order allow,deny
Allow from all
><% config[:ports].each do |port| %>
BalancerMember http://127.0.0.1:<%= port %><% end %>
<% end %>
ExpiresActive on
ExpiresDefault A0
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"