Skip to content

Instantly share code, notes, and snippets.

@joshuacronemeyer
Created December 26, 2012 20:13
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 joshuacronemeyer/4382822 to your computer and use it in GitHub Desktop.
Save joshuacronemeyer/4382822 to your computer and use it in GitHub Desktop.
Configuration for rails application suburi deployment
<VirtualHost *:80>
LoadModule passenger_module /home/josh/.rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/ext/apache2/mod_passenger.so
PassengerRoot /home/josh/.rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18
PassengerRuby /home/josh/.rvm/wrappers/ruby-1.9.3-p327/ruby
ServerName subdomain.domain.com
RailsEnv staging
RackBaseURI /suburi/app
DocumentRoot /var/www/vhosts/subdomain.domain.com/current/public
<Directory /var/www/vhosts/subdomain.domain.com/current/public >
Options Indexes FollowSymLinks
AllowOverride All
Options -MultiViews
Options -Indexes
</Directory>
<Directory /var/www/vhosts/subdomain.domain.com/current/public/suburi/app >
Options -MultiViews
</Directory>
<Directory /var/www/vhosts/subdomain.domain.com/uploads >
Options Indexes FollowSymLinks
AllowOverride All
Options -MultiViews
Options -Indexes
</Directory>
CustomLog /var/log/httpd/subdomain.domain.com-access.log combined
ErrorLog /var/log/httpd/subdomain.domain.com-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment