1 # Koha Apache Configuration Directives
6 <VirtualHost __WEBSERVER_IP__:__WEBSERVER_PORT__>
7 ServerAdmin __WEBMASTER_EMAIL__
8 DocumentRoot __OPAC_WWW_DIR__
9 ServerName __WEBSERVER_HOST__
10 # ServerAlias opac.mydomain.com
11 ScriptAlias /cgi-bin/koha/ "__OPAC_CGI_DIR__/opac/"
12 ScriptAlias /index.html "__OPAC_CGI_DIR__/opac/opac-main.pl"
13 ScriptAlias /opac-search.pl "__OPAC_CGI_DIR__/opac/search"
14 ScriptAlias /search "__OPAC_CGI_DIR__/opac/search"
15 ErrorLog __LOG_DIR__/koha-opac-error_log
16 # TransferLog __LOG_DIR__/koha-opac-access_log
17 SetEnv KOHA_CONF "__KOHA_CONF_DIR__/koha-conf.xml"
18 SetEnv PERL5LIB "__PERL_MODULE_DIR__"
19 Options +FollowSymLinks
24 # Uncomment to turn on rewrite logging
25 # RewriteLog __LOG_DIR__/koha-opac-rewrite.log
27 RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
28 RewriteRule (.+) $1?%1%2 [N,R,NE]
30 RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT]
31 RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
32 RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
36 <VirtualHost __WEBSERVER_IP__:__WEBSERVER_PORT_LIBRARIAN__>
37 ServerAdmin __WEBMASTER_EMAIL__
38 DocumentRoot __INTRANET_WWW_DIR__
39 ServerName __WEBSERVER_HOST__:__WEBSERVER_PORT_LIBRARIAN__
40 # ServerAlias intranet.mydomain.com
41 ScriptAlias /cgi-bin/koha/ "__INTRANET_CGI_DIR__"
42 ScriptAlias /index.html "__INTRANET_CGI_DIR__/mainpage.pl"
43 ScriptAlias /search "__INTRANET_CGI_DIR__/search.pl"
44 ErrorLog __LOG_DIR__/koha-error_log
45 # TransferLog __LOG_DIR__/koha-access_log
46 SetEnv KOHA_CONF "__KOHA_CONF_DIR__/koha-conf.xml"
47 SetEnv PERL5LIB "__PERL_MODULE_DIR__"
48 Options +FollowSymLinks
50 # Uncomment to turn on rewrite logging
51 # RewriteLog __LOG_DIR__/koha-intranet-rewrite.log
54 RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
55 RewriteRule (.+) $1?%1%2 [N,R,NE]
56 RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT]
57 RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
58 RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]