Created
June 30, 2010 20:15
-
-
Save rrichards/459159 to your computer and use it in GitHub Desktop.
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> | |
# Admin email, Server Name (domain name) and any aliases | |
ServerAdmin [email protected] | |
ServerName stage1.freedomsoft.com | |
# Index file and Document Root (where the public files are located) | |
DirectoryIndex index.html | |
DocumentRoot /var/www/apps/my.freedomsoft.com/current/public | |
# Show maintenance page if it exists | |
ErrorDocument 503 /index.html | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !\.(css|gif|jpg|png)$ | |
RewriteCond %{DOCUMENT_ROOT}/index.html -f | |
RewriteCond %{SCRIPT_FILENAME} !index.html | |
RewriteRule ^.*$ - [redirect=503,last] | |
# Custom log file locations | |
LogLevel warn | |
ErrorLog /var/www/apps/my.freedomsoft.com/shared/log/error.log | |
CustomLog /var/www/apps/my.freedomsoft.com/shared/log/access.log combined | |
# Passenger | |
PassengerUseGlobalQueue on | |
PassengerMaxPoolSize 30 | |
SetEnv RAILS_ENV staging | |
#SetEnv SERVE_WEBSITES true | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment