Skip to content

Instantly share code, notes, and snippets.

@akinsgre
Created March 19, 2014 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akinsgre/9645179 to your computer and use it in GitHub Desktop.
Save akinsgre/9645179 to your computer and use it in GitHub Desktop.
<Virtualhost *:80>
ServerName test.gaiconsultants.com
ServerAlias dev-test.gaiconsultants.com
ServerAlias test-test.gaiconsultants.com
DocumentRoot /var/www/test/public/
#UseCanonicalName Off
RailsEnv production
<Directory /var/www/test/public>
# Options ExecCGI FollowSymLinks
AllowOverride All
# Order allow,deny
Allow from all
Options -MultiViews -Indexes
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteLog "/var/log/apache2/rewrite.log"
RewriteRule ^/autodiscover/autodiscover\.xml$ - [R=404,L]
</IfModule>
</Virtualhost>
<Virtualhost *:443>
ServerName test.gaiconsultants.com:443
ServerAlias dev-test.gaiconsultants.com
DocumentRoot /var/www/test/public/
UseCanonicalName Off
SSLEngine On
SSLCertificateKeyFile /etc/apache2/ssl/gai_wildcard_private_key.pem
SSLCertificateFile /etc/apache2/ssl/gaiconsultants.com.crt
SSLCertificateChainFile /etc/apache2/ssl/gd_bundle.crt
RailsEnv development
<Directory /var/www/test/public>
Options ExecCGI FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
#Options -MultiViews -Indexes
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteLog "/var/log/apache2/rewrite.log"
RewriteRule ^/autodiscover/autodiscover\.xml$ - [R=404,L]
</IfModule>
</Virtualhost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment