Created
June 7, 2013 08:59
-
-
Save reggieb/5727984 to your computer and use it in GitHub Desktop.
A passenger apache directive, used on my development PC so that I can mimic the production environment and debug errors caused by the app being hosed in a sub-uri. For example, issues with redirects going to http root rather than app root.
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> | |
ServerName localhost | |
DocumentRoot /home/rob/public_html | |
<Directory /home/rob/public_html> | |
Allow from all | |
</Directory> | |
RackBaseURI /self_assessment | |
<Directory /home/rob/web/select_assessment> | |
Options -MultiViews | |
</Directory> | |
<Location /self_assessment> | |
PassengerRuby /home/rob/.rvm/wrappers/ruby-1.9.3-p286@self_assessment/ruby | |
RailsEnv development | |
</Location> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment