Sha256: 7fb6cf2899b716c2744bef7638c9c29835df44998437ef646d8ed2a7d1ae578e

Contents?: true

Size: 1.13 KB

Versions: 1

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.17' %>/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/<%= config[:passenger_version] || 'passenger-3.0.17' %>
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

1 entries across 1 versions & 1 rubygems

Version Path
zena-1.2.3 lib/zena/deploy/httpd.rhtml