Hey experts,
i run a rails app on passenger and it all works like it should.
Now i want to add an sinatra app to run as rack application with passenger, but i always get a routing error.
My VirtualHosts File looks like:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.domain1.com
DocumentRoot /home/user1/vhosts/project1/public
ErrorLog /home/user1/vhosts/project1/log/httpd_error_log
CustomLog /home/user1/vhosts/project1/log/httpd_access_log combined
</VirtualHost>
<VirtualHost *:80>
ServerName www.sub.domain2.com
DocumentRoot /home/user2/vhosts/sinatra_app/lib/public
ErrorLog /home/user2/vhosts/sinatra_app/lib/log/httpd_error_log
CustomLog /home/user2/vhosts/sinatra_app/lib/log/httpd_access_log combined
</VirtualHost>
My Sinatra app is really simple, i have a route called get "/do_something" do .... with no public files, it only responds some json.
My question is, how can i make it work to do requests like www.sub.domain2.com/do_something
Thanks for your help!