Skip to content

Instantly share code, notes, and snippets.

@terrymun
Last active November 16, 2015 00:42
Show Gist options
  • Save terrymun/aa2f75889db446b15626 to your computer and use it in GitHub Desktop.
Save terrymun/aa2f75889db446b15626 to your computer and use it in GitHub Desktop.
Actual example (multiple SequenceServer): Apache httpd.conf file for SequenceServer
<VirtualHost *:80>
# Server config
ServerName lotus.au.dk
DocumentRoot /var/www/html
# Allow access to URI space
<Directory /var/www/html>
Allow from all
Options -MultiViews
# For Apache >= 2.4
# Require all granted
</Directory>
# Public BLAST
Alias /blast /home/terry/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sequenceserver-1.0.4/public
<Location /blast>
PassengerBaseURI /blast
PassengerAppRoot /home/terry/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sequenceserver-1.0.4
</Location>
<Directory /home/terry/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sequenceserver-1.0.4/public>
Allow from all
Options -MultiViews
# For Apache >= 2.4
# Require all granted
PassengerFriendlyErrorPages on
</Directory>
# Private BLAST
Alias /blast-private /home/terry/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sequenceserver-1.0.4-private/public
<Location /blast>
PassengerBaseURI /blast-private
PassengerAppRoot /home/terry/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sequenceserver-1.0.4-private
</Location>
<Directory /home/terry/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sequenceserver-1.0.4-private/public>
Order deny,allow
Deny from all
Allow from 10.0.0.0/255.0.0.0
Options -MultiViews
# For Apache >= 2.4
# Require host 10.0.0.0/255.0.0.0
PassengerFriendlyErrorPages on
</Directory>
</VirtualHost>
# Define default Passenger user
PassengerDefaultUser terry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment