Created
June 13, 2013 14:18
-
-
Save rokkit/5774032 to your computer and use it in GitHub Desktop.
passenger post install message
This file contains hidden or 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
| The Apache 2 module was successfully installed. | |
| Please edit your Apache configuration file, and add these lines: | |
| LoadModule passenger_module /root/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/passenger-4.0.5/libout/apache2/mod_passenger.so | |
| PassengerRoot /root/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/passenger-4.0.5 | |
| PassengerDefaultRuby /root/.rbenv/versions/2.0.0-p195/bin/ruby | |
| After you restart Apache, you are ready to deploy any number of Ruby on Rails | |
| applications on Apache, without any further Ruby on Rails-specific | |
| configuration! | |
| ------------------ | |
| Deploying a Ruby on Rails application: an example | |
| Suppose you have a Rails application in /somewhere. Add a virtual host to your | |
| Apache configuration file and set its DocumentRoot to /somewhere/public: | |
| <VirtualHost *:80> | |
| ServerName www.yourhost.com | |
| # !!! Be sure to point DocumentRoot to 'public'! | |
| DocumentRoot /somewhere/public | |
| <Directory /somewhere/public> | |
| # This relaxes Apache security settings. | |
| AllowOverride all | |
| # MultiViews must be turned off. | |
| Options -MultiViews | |
| </Directory> | |
| </VirtualHost> | |
| And that's it! You may also want to check the Users Guide for security and | |
| optimization tips, troubleshooting and other useful information: | |
| /root/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/passenger-4.0.5/doc/Users guide Apache.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment