# ----------------------------------------------------------------------------------
# This is the global Evergreen virtual host config. Anything you want published
# through all virtual hosts (port 80, port 443, etc.) should live in here.
# ----------------------------------------------------------------------------------
# ----------------------------------------------------------------------------------
# Point / to the opac
# ----------------------------------------------------------------------------------
RedirectMatch 301 ^/?$ /opac/en-US/skin/default/xml/index.xml
RedirectMatch 301 ^/opac/extras/slimpac/start.html$ /opac/en-US/extras/slimpac/start.html
RedirectMatch 301 ^/opac/extras/slimpac/advanced.html$ /opac/en-US/extras/slimpac/advanced.html
# ----------------------------------------------------------------------------------
# Configure the gateway
# ----------------------------------------------------------------------------------
OSRFGatewayConfig /openils/conf/opensrf_core.xml
# ----------------------------------------------------------------------------------
# Set up the book jackets URL
# XXX This pulls images from Amazon, don't use this in a production environment
# ----------------------------------------------------------------------------------
RewriteEngine on
# ProxyTimeout 2
RewriteRule /opac/extras/jacket/small/(.*) \
http://images.amazon.com/images/P/$1.01._SCMZZZZZZZ_.jpg [P,L]
RewriteRule /opac/extras/jacket/large/(.*) \
http://images.amazon.com/images/P/$1.01._SCLZZZZZZZ_.jpg [P,L]
# ----------------------------------------------------------------------------------
# Added content plugin
# ----------------------------------------------------------------------------------
SetHandler perl-script
PerlHandler OpenILS::WWW::AddedContent
Options +ExecCGI
PerlSendHeader On
allow from all
# ----------------------------------------------------------------------------------
# Configure the OPAC
# ----------------------------------------------------------------------------------
AddType application/xhtml+xml .xml
# - configure mod_xmlent
XMLEntStripPI "yes"
XMLEntEscapeScript "no"
XMLEntStripComments "yes"
XMLEntContentType "text/html; charset=utf-8"
# forces quirks mode which we want for now
XMLEntStripDoctype "yes"
# - set up the include handlers
Options +Includes
AddOutputFilter INCLUDES .xsl
AddOutputFilter INCLUDES;XMLENT .xml
# add languages as necessary
SetEnvIf Request_URI "/en-US/" locale=en-US
SetEnvIf Request_URI "/fr-CA/" locale=fr-CA
SetEnvIf Request_URI "/fr/" locale=fr-CA
SetEnvIf Request_URI ".*" OILS_OPAC_BASE=/opac/
# ----------------------------------------------------------------------------------
# Force SSL on the OPAC's "My Account" page
# ----------------------------------------------------------------------------------
SSLRequireSSL
AddType application/xhtml+xml .xml
AddOutputFilter INCLUDES;XMLENT .html
# ----------------------------------------------------------------------------------
# Run server-side XUL through xmlent to load the correct XML entities
# ----------------------------------------------------------------------------------
# add languages as necessary
SetEnv locale=en-US
Options +Includes
XMLEntContentType "application/vnd.mozilla.xul+xml"
AddOutputFilter INCLUDES;XMLENT .xul
allow from all
# ----------------------------------------------------------------------------------
# Supercat feeds
# ----------------------------------------------------------------------------------
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::oisbn
Options +ExecCGI
PerlSendHeader On
allow from all
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::supercat
Options +ExecCGI
PerlSendHeader On
allow from all
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::unapi
Options +ExecCGI
PerlSendHeader On
allow from all
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
Options +ExecCGI
PerlSendHeader On
allow from all
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
Options +ExecCGI
PerlSendHeader On
allow from all
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::changes_feed
Options +ExecCGI
PerlSendHeader On
allow from all
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::string_browse
Options +ExecCGI
PerlSendHeader On
allow from all
# ----------------------------------------------------------------------------------
# Module for processing staff-client offline scripts lives here
# ----------------------------------------------------------------------------------
AddHandler cgi-script .pl
AllowOverride None
Options +ExecCGI
allow from all
# ----------------------------------------------------------------------------------
# OpenSRF JSON gateway
# ----------------------------------------------------------------------------------
SetHandler osrf_json_gateway_module
allow from all
# ----------------------------------------------------------------------------------
# The exporter lives here
# ----------------------------------------------------------------------------------
SetHandler perl-script
PerlHandler OpenILS::WWW::Exporter
Options +ExecCGI
allow from all
# ----------------------------------------------------------------------------------
# Reporting output lives here
# ----------------------------------------------------------------------------------
SetHandler perl-script
PerlHandler OpenILS::Reporter::Proxy
Options +ExecCGI
PerlSendHeader On
allow from all
# ----------------------------------------------------------------------------------
# Reports GUI
# ----------------------------------------------------------------------------------
Options +Includes
AddOutputFilter INCLUDES .xhtml
# ----------------------------------------------------------------------------------
# XML-RPC gateway
# ----------------------------------------------------------------------------------
SetHandler perl-script
PerlHandler OpenILS::WWW::XMLRPCGateway
Options +ExecCGI
PerlSendHeader On
allow from all
# ----------------------------------------------------------------------------------
# Django admin interface (experimental)
# - requires mod_python and django
# - requires a symlink from WEBROOT/media to
# /usr/lib/python2.4/site-packages/django/contrib/admin/media/ (or similar)
# ----------------------------------------------------------------------------------
#
# Order deny,allow
# Deny from all
# Allow from 10.0.0.0/8
# SetHandler mod_python
# PythonHandler django.core.handlers.modpython
# SetEnv DJANGO_SETTINGS_MODULE ils_admin.settings
# PythonDebug On
# PythonPath "['/openils/var/admin/', '/usr/lib/python2.4/site-packages/'] +sys.path"
# PythonAutoReload On
#