Sha256: caf2991c5fa768c4a38ae31c480ba3a94bc6d45d15d9a0c4cc3eff0686ae6f30

Contents?: true

Size: 1.66 KB

Versions: 7

Compression:

Stored size: 1.66 KB

Contents

<VirtualHost <%=  apache_ssl_ip %>:443>
  ServerName <%=  apache_server_name %>
  <%  apache_server_aliases_array.each do |a| %>
  ServerAlias <%= "#{a}" %>
  <% end %>
  DocumentRoot <%= "#{current_path}/public" %>

  <Directory <%= "#{current_path}/public" %>>
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>

  # set the environment 
  RailsEnv <%= rails_env.to_s %>

<% if use_mod_rewrite %>
  RailsAllowModRewrite on
  RewriteEngine On

  # Prevent access to .svn directories
  RewriteRule ^(.*/)?\.svn/ - [F,L]
  ErrorDocument 403 "Access Forbidden"

  # Check for maintenance file and redirect all requests
  RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
  RewriteCond %{SCRIPT_FILENAME} !maintenance.html
  RewriteRule ^.*$ /system/maintenance.html [L]

<% end %>

  # Deflate
  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

  # SSL Engine Switch
  SSLEngine on

  # SSL Cipher Suite:
  SSLProtocol -all +SSLv3
	SSLCipherSuite SSLv3:+HIGH:+MEDIUM

  # Server Certificate
  SSLCertificateFile /etc/httpd/conf/ssl.crt/<%= domain %>.crt

  # Server Private Key
  SSLCertificateKeyFile /etc/httpd/conf/ssl.key/<%= domain %>.key

  BrowserMatch ".*MSIE.*" \
  nokeepalive ssl-unclean-shutdown \
  downgrade-1.0 force-response-1.0

  ErrorLog logs/<%= domain %>-error_log
  CustomLog logs/<%= domain %>-access_log combined
  CustomLog logs/<%= domain %>-ssl_log \
            "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
railsmachine-railsmachine-1.0.3 lib/railsmachine/recipes/web/templates/passenger/httpd-ssl.conf
railsmachine-railsmachine-1.0.4 lib/railsmachine/recipes/web/templates/passenger/httpd-ssl.conf
railsmachine-railsmachine-1.0.5 lib/railsmachine/recipes/web/templates/passenger/httpd-ssl.conf
railsmachine-1.0.6 lib/railsmachine/recipes/web/templates/passenger/httpd-ssl.conf
railsmachine-1.0.4 lib/railsmachine/recipes/web/templates/passenger/httpd-ssl.conf
railsmachine-1.0.5 lib/railsmachine/recipes/web/templates/passenger/httpd-ssl.conf
railsmachine-1.0.3 lib/railsmachine/recipes/web/templates/passenger/httpd-ssl.conf