# ----------------------------------------------------------------------------------
# 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
# ----------------------------------------------------------------------------------
# Assign a default locale to the accessible OPAC
# ----------------------------------------------------------------------------------
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
# This is an example of how you can have bookjacket images via Apache redirect,
# if there is no full-fledged added content plugin for the site you want to
# fetch images from.
# ----------------------------------------------------------------------------------
#RewriteEngine on
#ProxyTimeout 2
#RewriteRule /opac/extras/ac/jacket/small/(.*) \
# http://images.amazon.com/images/P/$1.01._SCMZZZZZZZ_.jpg [P,L]
#RewriteRule /opac/extras/ac/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 ".*" OILS_OPAC_BASE=/opac/
# This gives you the option to configure a different host to serve OPAC images from
# Specify the hostname (withouth protocol) and path to the images. Protocol will
# be determined at runtime
#SetEnvIf Request_URI ".*" OILS_OPAC_IMAGES_HOST=static.example.org/opac/
#SetEnvIf Request_URI ".*" OILS_OPAC_CSS_HOST=static.example.org/opac/
#SetEnvIf Request_URI ".*" OILS_OPAC_JS_HOST=static.example.org/opac/
# ----------------------------------------------------------------------------------
# Force SSL on the OPAC's "My Account" page
# ----------------------------------------------------------------------------------
SSLRequireSSL
AddType application/xhtml+xml .xml
AddOutputFilter INCLUDES;XMLENT .html
# ----------------------------------------------------------------------------------
# Run server-side XUL and XHTML through xmlent to load the correct XML entities
# ----------------------------------------------------------------------------------
Options +Includes
AddOutputFilter INCLUDES;XMLENT .xhtml
allow from all
# We only support one locale (en-US) for the time being
SetEnv locale en-US
Options +Includes
XMLEntContentType "application/vnd.mozilla.xul+xml"
AddOutputFilter INCLUDES;XMLENT .xul
allow from all
# We only support one locale (en-US) for the time being
SetEnv locale en-US
# ----------------------------------------------------------------------------------
# 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::sru_search
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
# ----------------------------------------------------------------------------------
# XXX Note, it's important to explicitly set the JSON encoding style
# (OSRFGatewayLegacyJSON), since the default encoding style will likely change
# with OpenSRF 1.0
# ----------------------------------------------------------------------------------
# OpenSRF JSON legacy gateway
# ----------------------------------------------------------------------------------
SetHandler osrf_json_gateway_module
OSRFGatewayLegacyJSON "true"
allow from all
# ----------------------------------------------------------------------------------
# New-style OpenSRF JSON gateway
# ----------------------------------------------------------------------------------
SetHandler osrf_json_gateway_module
OSRFGatewayLegacyJSON "false"
allow from all
# ----------------------------------------------------------------------------------
# The exporter lives here
# ----------------------------------------------------------------------------------
SetHandler perl-script
PerlSetVar OILSProxyTitle "Exporter Login"
PerlSetVar OILSProxyDescription "Please log in to export records"
PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
PerlHandler OpenILS::WWW::Proxy OpenILS::WWW::Exporter
Options +ExecCGI
allow from all
# ----------------------------------------------------------------------------------
# Reporting output lives here
# ----------------------------------------------------------------------------------
SetHandler perl-script
PerlSetVar OILSProxyTitle "Report Login"
PerlSetVar OILSProxyDescription "Please log in to view this report"
PerlSetVar OILSProxyPermissions "VIEW_REPORT_OUTPUT"
PerlHandler OpenILS::WWW::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
#