Skip to content

Instantly share code, notes, and snippets.

@deadprogram
Created November 24, 2008 20:37
Show Gist options
  • Save deadprogram/28596 to your computer and use it in GitHub Desktop.
Save deadprogram/28596 to your computer and use it in GitHub Desktop.
NameVirtualHost *:443
<VirtualHost *:80>
ServerName <%= name %>
DocumentRoot <%= "/var/www/#{name}/public" %>
</VirtualHost>
<VirtualHost *:443>
ServerName <%= name %>
DocumentRoot <%= "/var/www/#{name}/public" %>
ErrorLog <%= "/var/www/#{name}/log/error_log" %>
CustomLog <%= "/var/www/#{name}/log/access_log common" %>
SSLEngine on
SSLOptions +StrictRequire
SSLCertificateFile <%= ssl_cert_file %>
SSLCertificateKeyFile <%= ssl_private_key_file %>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment