Created
December 7, 2011 09:50
-
-
Save lzcabrera/1442210 to your computer and use it in GitHub Desktop.
deploying 2 virtual hosts root using Apache
This file contains 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> | |
ServerAdmin [email protected] | |
DocumentRoot /opt/railsapps/testone/public | |
ServerName domain1.com | |
ServerAlias domain1.com | |
ErrorLog logs/domain1-error_log | |
CustomLog logs/domain1-access_log common | |
<Directory /opt/railsapps/testone/public> | |
Allow from all | |
Options -MultiViews | |
</Directory> | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot /opt/railsapps/testtwo/public | |
ServerName domain2.com | |
ServerAlias www.domain2.com | |
ErrorLog logs/domain2.com-error_log | |
CustomLog logs/domain2.com-access_log common | |
<Directory /opt/railsapps/testtwo/public> | |
Allow from all | |
Options -MultiViews | |
</Directory> | |
</VirtualHost> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment