Skip to content

Instantly share code, notes, and snippets.

@eliza-abraham
Forked from vparihar01/VirtualHost.conf
Created November 11, 2013 09:21
Show Gist options
  • Save eliza-abraham/7410339 to your computer and use it in GitHub Desktop.
Save eliza-abraham/7410339 to your computer and use it in GitHub Desktop.
<virtualhost *:80>
ServerName app.com
ServerAlias www.app.com
DocumentRoot /var/www/html/blog/public # <-- be sure to point to 'public'!
setenv RAILS_ENV production
<Directory /var/www/html/blog/public>
AllowOverride All
RailsEnv production
</Directory
ErrorLog /var/log/apache2/blog_error_log
CustomLog /var/log/apache2/blog_access_log common
</virtualhost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment