I'm having trouble serving a rails app at a sub uri using passenger and rails.
The relevant part of my nginx.conf is as follows:
server {
listen 80;
server_name ~^(.*)\.domain\.com$ ;
location /redmine/ {
root /home/www/data/$1/redmine/public;
passenger_enabled on;
passenger_base_uri /redmine;
}
}
Nginx is actually looking for a static file at /home/www/data/pckprojects/redmine/public/redmine/index.html .
Any thoughts? Thanks.
Update:
The passenger documentation for this is pretty clear, so I should have noted why I'm trying to go about it a different way.
Ultimately I would like / to be serving a Django application, probably via fastcgi. The passenger documentation for deploying at a sub uri is for if you are serving static content at / and want your rails app and at a sub uri. Since I'm going to serve a fastcgi application, using a symlink to link to the rails application isn't going to work.