First of all, to the authors, thanks for writing sequenceserver.
I’ve installed sequenceserver with and without Passenger - it works perfectly fine without Passenger through port 4567, but I’m having troubles getting it to work on Apache via Passenger.
The app loads up fine when I deploy it at the sub-URI foo.com/blast, but the CSS, images and JS files are not loaded correctly. An inspection of the HTML source code reveals that the static content is linked wrongly - for instance, the minified CSS of the website is linking to foo.com/css/sequenceserver.min.css (which is a 404 dead link), whereas the correct link should be foo.com/blast/css/sequenceserver.min.css (which contains plaintext when manually accessed via the URL bar of my browser). My deployment server runs Debian Stable, Apache 2.2, Ruby 1.9.1.
Strangely, I do not have the same problem on my test server - however, my test server runs Debian Unstable, Apache 2.4, and Ruby 2.1.0, so it might be that Apache 2.4 has saner behaviour compared to 2.2.
There’s a similar description of what I’m experiencing on the Passenger website itself: https://www.phusionpassenger.com/documentation/Users%20guide%20Apache.html#sub_uri_deployment_uri_fix, but as I’m not well-versed in Ruby nor Apache, I do not know what I need to fix for the links to work properly.
If it’s of any help, the relevant bits of my Apache .conf file reads:
Options Indexes FollowSymLinks Includes AllowOverride All Options -MultiViews #Require all grantedAlias /blast /usr/lib/ruby/gems/1.9.1/gems/sequenceserver-1.0.2/public
<Location /blast>
PassengerBaseURI /blast
PassengerAppRoot /usr/lib/ruby/gems/1.9.1/gems/sequenceserver-1.0.2
<Directory /usr/lib/ruby/gems/1.9.1/gems/sequenceserver-1.0.2/public>
Allow from all
Options -MultiViews
#Require all granted
(“Require all granted” is commented out because my deploy server is not running Apache 2.4. I didn’t use RackBaseURI as suggested on the sequenceserver main site as it’s been deprecated https://www.phusionpassenger.com/documentation/Users%20guide%20Apache.html#_railsbaseuri_and_rackbaseuri ).
I appreciate any help/tips, thanks in advance!