Created
December 26, 2012 20:13
-
-
Save joshuacronemeyer/4382822 to your computer and use it in GitHub Desktop.
Configuration for rails application suburi deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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