Last active
November 16, 2015 00:09
-
-
Save terrymun/5a9c299fcae96d52c9b9 to your computer and use it in GitHub Desktop.
Actual example (single SequenceServer): Apache httpd.conf file for SequenceServer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
# Server config | |
ServerName domain.com | |
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> | |
# Allow access to Rails app's public files | |
# that are outside of URI space | |
Alias /blast /home/terry/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sequenceserver-1.0.4/public | |
# Run Rails app from /subdirectory | |
<Location /blast> | |
PassengerBaseURI /blast | |
PassengerAppRoot /home/terry/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sequenceserver-1.0.4 | |
</Location> | |
# Additional rules for files in the public directory of Rails app | |
<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> | |
</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