Koha/etc/koha-httpd.conf
MJ Ray 28695e9166 Add missing auto_install features to new installer
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-06 17:14:45 -05:00

59 lines
2.2 KiB
Text

# Koha Apache Configuration Directives
#NameVirtualHost *
## OPAC
<VirtualHost __WEBSERVER_IP__:__WEBSERVER_PORT__>
ServerAdmin __WEBMASTER_EMAIL__
DocumentRoot __BASE_DIR__/opac/htdocs
ServerName __WEBSERVER_HOST__
# ServerAlias opac.mydomain.com
ScriptAlias /cgi-bin/koha/ "__BASE_DIR__/opac/cgi-bin/"
ScriptAlias /index.html "__BASE_DIR__/opac/cgi-bin/opac-main.pl"
ScriptAlias /opac-search.pl "__BASE_DIR__/opac/cgi-bin/search"
ScriptAlias /search "__BASE_DIR__/opac/cgi-bin/search"
ErrorLog __BASE_DIR__/log/opac-error_log
# TransferLog __BASE_DIR__/log/opac-access_log
SetEnv PERL5LIB "__BASE_DIR__/intranet/modules"
SetEnv KOHA_CONF "__BASE_DIR__/etc/koha-conf.xml"
Options +FollowSymLinks
# Rewrite Rules
RewriteEngine On
# Uncomment to turn on rewrite logging
# RewriteLog __BASE_DIR__/log/opac-rewrite.log
# RewriteLogLevel 1
RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
RewriteRule (.+) $1?%1%2 [N,R,NE]
RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT]
RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
</VirtualHost>
## Intranet
<VirtualHost __WEBSERVER_IP__:__WEBSERVER_PORT_LIBRARIAN__>
ServerAdmin __WEBMASTER_EMAIL__
DocumentRoot __BASE_DIR__/intranet/htdocs
ServerName __WEBSERVER_HOST__:__WEBSERVER_PORT_LIBRARIAN__
# ServerAlias intranet.mydomain.com
ScriptAlias /cgi-bin/koha/ "__BASE_DIR__/intranet/cgi-bin/"
ScriptAlias /index.html "__BASE_DIR__/intranet/cgi-bin/mainpage.pl"
ScriptAlias /search "__BASE_DIR__/intranet/cgi-bin/search.pl"
ErrorLog __BASE_DIR__/log/error_log
# TransferLog __BASE_DIR__/log/access_log
SetEnv PERL5LIB "__BASE_DIR__/intranet/modules"
SetEnv KOHA_CONF "__BASE_DIR__/etc/koha-conf.xml"
Options +FollowSymLinks
RewriteEngine On
# Uncomment to turn on rewrite logging
# RewriteLog __BASE_DIR__/log/intranet-rewrite.log
# RewriteLogLevel 1
RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
RewriteRule (.+) $1?%1%2 [N,R,NE]
RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT]
RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
</VirtualHost>