Skip to content

Instantly share code, notes, and snippets.

@vparihar01
Created March 22, 2013 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save vparihar01/5219280 to your computer and use it in GitHub Desktop.
Save vparihar01/5219280 to your computer and use it in GitHub Desktop.
Virtual Host configuration for Ruby On Rails Application with Custom error log configuration.
<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