https://github.com/genome/genome
Raw File
Tip revision: f903bde8053d6e1c56e6c9dde5a9d478c3669e26 authored by Scott Smith on 18 October 2012, 21:25:21 UTC
tMerge branch 'master' of ssh://git/srv/git/genome
Tip revision: f903bde
genome
Listen 8500
<VirtualHost *:8500>
    # SuexecUserGroup: Sets the domain to run as a specific user when
    # executing processes.
    # SuexecUserGroup USER GROUP

    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    DocumentRoot /var/www/genome/htdocs

    Alias /resources /var/www/genome/htdocs

    # if not specified, the global error log is used
    # If logging to standard access and error logs comment the cronlog line and uncomment below
    #ErrorLog /var/www/genome/logs/error_log
    #CustomLog /var/www/genome/logs/access_log combined

    # Default logging is now Cronolog, please make sure cronolog is installed before restarting Apache.
    ErrorLog "|/usr/bin/cronolog -l /var/www/genome/logs/error_log /var/www/genome/logs/%Y/%Y-%m-error_log"
    CustomLog "|/usr/bin/cronolog -l /var/www/genome/logs/access_log /var/www/genome/logs/%Y/%Y-%m-access_log" combined

    # Do not lose time with IP address lookups
    HostnameLookups Off

    # Needed for named virtual hosts
    UseCanonicalName Off

    # Configures the footer on server-generated documents
    ServerSignature Off

    ScriptAlias /cgi-bin "/var/www/genome/cgi-bin"

    Alias /res "/usr/share/perl5/Genome/View/Resource/Html/"
    Alias /view/genome/resource.html "/usr/share/perl5/Genome/View/Resource/Html/"

    FastCgiExternalServer /tmp/genome.fcgi -host 127.0.0.1:5000 -idle-timeout 600

    ## to disable view memcache, comment out these 3 lines and uncomment the above two
    Alias /cachetrigger /tmp/genome.fcgi/cachetrigger
    Alias /viewajax /tmp/genome.fcgi/cachefill
    Alias /view /tmp/genome.fcgi/cache

    RewriteEngine On
    RewriteRule ^/$ /view/genome/home.html [R]
    RewriteRule ^/home$ /view/genome/home.html [R]
    RewriteRule ^/home/$ /view/genome/home.html [R]

    RewriteRule ^/search/$ /search [PT]
    Alias /search /tmp/genome.fcgi/view/genome/search/status.html
    
    RewriteCond %{HTTP_USER_AGENT} ^curl.*
    RewriteRule ^/cachetrigger.*$ - [F]

    <Directory "/var/www/genome/cgi-bin">
        AllowOverride None
        Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    <Directory /var/www/genome/htdocs>
        Options -Indexes ExecCGI FollowSymLinks
        AllowOverride All
    </Directory>

</VirtualHost>

back to top