Sha256: 5c642f7568760aeb8bd40ed97338379097b7fd449be3509e042ecf44114920bf
Contents?: true
Size: 1.13 KB
Versions: 5
Compression:
Stored size: 1.13 KB
Contents
# zena apache2 setup for <%= config[:balancer] %> # automatically generated file <% if config[:ssl] %> NameVirtualHost *:80 NameVirtualHost *:443 SSLProtocol all SSLCipherSuite HIGH:MEDIUM <% else %> NameVirtualHost * <% end %> <% if config[:app_type] == :passenger %> LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/<%= config[:passenger_version] || 'passenger-3.0.19' %>/ext/apache2/mod_passenger.so PassengerRoot /usr/lib/ruby/gems/1.8/gems/<%= config[:passenger_version] || 'passenger-3.0.19' %> PassengerRuby /usr/bin/ruby1.8 PassengerDefaultUser www-data <% elsif config[:app_type] == :mongrel %> <Proxy *> Order allow,deny Allow from all </Proxy> <% if config[:haproxy_port] %> <Proxy balancer://<%= config[:balancer] %>> BalancerMember http://127.0.0.1:<%= config[:haproxy_port] %> </Proxy> <% else %> <Proxy balancer://<%= config[:balancer] %>><% config[:ports].each do |port| %> BalancerMember http://127.0.0.1:<%= port %><% end %> </Proxy> <% end %> <% end %> <IfModule mod_expires.c> <FilesMatch "\.(ico|flv|jpe?g|png|gif|js|css|swf)"> ExpiresActive On ExpiresDefault "access plus 1 year" </FilesMatch> </IfModule>
Version data entries
5 entries across 5 versions & 1 rubygems