Skip to content

Instantly share code, notes, and snippets.

@mrandyclark
Created August 23, 2010 01:05
Show Gist options
  • Save mrandyclark/544550 to your computer and use it in GitHub Desktop.
Save mrandyclark/544550 to your computer and use it in GitHub Desktop.
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
ServerName domain.com
ServerAlias www.domain.com
DocumentRoot path/to/app/current/public
DirectoryIndex index.html
RailsEnv production
# This is the default
ProxyPass /http-bind/ http://127.0.0.1:5280/http-bind/
ProxyPassReverse /http-bind/ http://127.0.0.1:5280/http-bind/
AddDefaultCharset UTF-8
<directory "path/to/app/current">
Order allow,deny
Allow from all
</directory>
</VirtualHost>
<VirtualHost *:443>
ServerName domain.com
ServerAlias www.domain.com
DocumentRoot path/to/app/current/public
DirectoryIndex index.html
RailsEnv production
# This is the default
ProxyPass /http-bind/ http://127.0.0.1:5280/http-bind/
ProxyPassReverse /http-bind/ http://127.0.0.1:5280/http-bind/
AddDefaultCharset UTF-8
<directory "path/to/app/current">
Order allow,deny
Allow from all
</directory>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/certificate.crt
SSLCertificateKeyFile /etc/apache2/ssl/key.key
SSLCertificateChainFile /etc/apache2/ssl/chain_file.crt
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment