Sha256: 791f5f13382d7360a8d9221ab452faaf33cbdc7803b4f0156a1b77d915abdbf7

Contents?: true

Size: 1.05 KB

Versions: 7

Compression:

Stored size: 1.05 KB

Contents

# 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 %>
<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>
  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/javascript "access plus 1 year"
</IfModule>

<% if config[:ssl] %>
SSLProtocol all
SSLCipherSuite HIGH:MEDIUM
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
zena-1.2.2 lib/zena/deploy/httpd.rhtml
zena-1.2.1 lib/zena/deploy/httpd.rhtml
zena-1.2.0 lib/zena/deploy/httpd.rhtml
zena-1.1.3 lib/zena/deploy/httpd.rhtml
zena-1.1.2 lib/zena/deploy/httpd.rhtml
zena-1.1.1 lib/zena/deploy/httpd.rhtml
zena-1.1.0 lib/zena/deploy/httpd.rhtml