I have a well working ispconfig setup, and have recently installed ruby on rails as well.
To get this working properly though the document root has to be set to the public folder.
I have tried multitudes of techniques to try and get this to work without actually changing the document root...
(for the following we shall assume ~/ is the /webX/ folder
- Created ~/ruby folder to contain all ruby files, renamed ~/web to ~/web.old, and created a symlink called web pointing to ~/ruby/public.
Unfortunately ruby looks in the ../ directory for folders such as app. SO instead of looking at ~/ruby/app it was getting ~/app which did not exist.
Summary - Symlinks do not work
- Copied all the ruby files, app, scripts, public etc all into the ~ folder and renamed ~/public to ~/web.
Also tried creating symlink ~/web pointing to ~/public.
This didn't seem to work either, i'm still digging up whats going on here.
- Also tried creating an alias ie www.site.com/shop using apache directives in ispconfig. This created weird errors such as index files not loading.
What with the .... fun ... I've been having I'm not going to setting up too many ruby sites, but is there any
possible way to change the document root for a single vhost? No files I can hack, lines that can be changed etc?
Sorry for the confusing mess above
Many Thanks for your time.