I’ve a droplet with Ubuntu 12 and LAMP but I want to deploy an Rails app on alias /dir. Ex: domain.com - Is the LAMP and I need to deploy the app on domain.com/app.
My site-available:
Alias /redmine/ "/var/www/nerijunior.com/redmine/public"
<Directory "/var/www/nerijunior.com/redmine/public">
Options Indexes -MultiViews FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
</Directory>
The passenger is installed and ok, but when I access /redmine the response is 404.
Thanks.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Assuming Passenger is set up correctly, you still need to configure the Rails app to work correctly from a subdirectory. It looks like you are installing Redmine
First you need to make sure the Rails app is configured to work correctly from a subdirectory. It looks like you are installing Redmine, so check out this. In $REDMINE_HOME/config/environment.rb you need to add Redmine::Utils::relative_url_root = "/redmine"
Also in your Apache configuration, you need:
<Location /redmine>
PassengerBaseURI /redmine
PassengerAppRoot /var/www/nerijunior.com/redmine
</Location>
Checkout the Passenger docs for deploying to a subfolder.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.