rrichards
6/30/2010 - 8:15 PM

stage1.freedomsoft.com

<VirtualHost *:80>

  # Admin email, Server Name (domain name) and any aliases
  ServerAdmin dev@freedomsoft.com
  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>