Rack app always shows 404 on 1.4.17

#1
OS: Debian 6.0.10 32bit VPS on OpenVZ
Software: OpenLiteSpeed v1.4.17 built from source by gcc/g++ 4.4.5-8, openssl 1.0.2g, ruby-lsapi 4.2 via Gem

PS: After `gem install ruby-lsapi`, the 'External App' tab does not show anything about ruby-lsapi, is this corrent?

I have a Rack (Cuba) app running perfectly with `rackup' command on ruby 2.2.1p85, while failed on OpenLiteServer, which always reports 404 error.

I firstly setup a stand alone virtual host with Rack/Rails context, which failed. Then I setup a virtual host within member of EasyRailsWithSuEXEC template, got the same result.

Here is my configuration (unmodified default settings not shown here):
Server Configuration: Rack/Rails Tab:
Ruby Path: /usr/local/rvm/rubies/ruby-2.2.1/bin/ruby
Run-time Mode: production
Max Connections: 5

VHost Template EasyRailsWithSuEXEC > Template
Virtual Host Name: My-Site
Domain: mysite.com
Alias: www.mysite.com
Member Virtual Host Root: /var/sites/MySite

There is no error in the errlog, just something like:
2016-06-09 19:33:21.451 NOTICE [Child: 7437] LiteSpeed/1.4.17 Open starts successfully!
2016-06-09 19:33:30.800 NOTICE [Child: 7133] Shut down successfully!
2016-06-09 19:33:30.800 NOTICE [lsphp5] stop worker processes
2016-06-09 19:33:30.800 NOTICE [AdminPHP] stop worker processes

PS: After server gracefully restart, everything static in /var/site/MySite/public can be served, while every dynamic urls fail with 404 error, include the root page '/'.

Need help, thanks a lot!
 
Top