# Example apache configuration, for timemachine-api.cmucreatelab.org, which runs on Ubuntu 12.04LTS
#
# To install,
#
# 1.  Copy file and customize paths
#
# 2.  Symlink into /etc/apache2/sites-enabled
#
# 3.  Restart apache:
#
#     sudo apachectl graceful
#

<VirtualHost *:80>
  #ServerName hal8.ece.cmu.edu
  #ServerAlias www.hal8.ece.cmu.edu
  ServerName thumbnails.cmucreatelab.org
  ServerAlias www.thumbnails.cmucreatelab.org

  #XSendFile on
  DocumentRoot /var/www/timemachine-thumbnail-server
  <Directory "/var/www/timemachine-thumbnail-server">
    AddHandler cgi-script .rb
    AddHandler cgi-script .py
    Options +ExecCGI
    #AllowOverride None
    #Options None
    #Order allow,deny
    #Allow from all
  </Directory>

Options FollowSymLinks
#Header set Access-Control-Allow-Origin "*"

#SetEnvIf Range .+ HAS_RANGE_HEADER
#RequestHeader unset If-Range env=!HAS_RANGE_HEADER
#RequestHeader unset If-Unmodified-Since env=!HAS_RANGE_HEADER

RewriteEngine on

  ScriptAlias /thumbnail "/var/www/timemachine-thumbnail-server/thumbnail-server.rb"
</VirtualHost>
