adding 'gettext' as this is requred by the translation utility
[koha.git] / etc / koha-httpd.conf
1 # Koha Apache Configuration Directives
2
3 #NameVirtualHost *
4
5 ## OPAC
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
20
21    ErrorDocument 400 /cgi-bin/koha/errors/400.pl
22    ErrorDocument 401 /cgi-bin/koha/errors/401.pl
23    ErrorDocument 403 /cgi-bin/koha/errors/403.pl
24    ErrorDocument 404 /cgi-bin/koha/errors/404.pl
25    ErrorDocument 500 /cgi-bin/koha/errors/500.pl
26
27 #  Rewrite Rules
28    RewriteEngine On
29
30 #  Uncomment to turn on rewrite logging
31 #  RewriteLog __LOG_DIR__/koha-opac-rewrite.log
32 #  RewriteLogLevel 1
33    RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
34    RewriteRule (.+) $1?%1%2 [N,R,NE]
35
36    RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT]
37    RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
38    RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
39 </VirtualHost>
40
41 ## Intranet
42 <VirtualHost __WEBSERVER_IP__:__WEBSERVER_PORT_LIBRARIAN__>
43    ServerAdmin __WEBMASTER_EMAIL__
44    DocumentRoot __INTRANET_WWW_DIR__
45    ServerName __WEBSERVER_HOST__:__WEBSERVER_PORT_LIBRARIAN__
46 #  ServerAlias intranet.mydomain.com
47    ScriptAlias /cgi-bin/koha/ "__INTRANET_CGI_DIR__/"
48    ScriptAlias /index.html "__INTRANET_CGI_DIR__/mainpage.pl"
49    ScriptAlias /search "__INTRANET_CGI_DIR__/search.pl"
50    ErrorLog __LOG_DIR__/koha-error_log
51 #  TransferLog __LOG_DIR__/koha-access_log
52    SetEnv KOHA_CONF "__KOHA_CONF_DIR__/koha-conf.xml"
53    SetEnv PERL5LIB "__PERL_MODULE_DIR__"
54    Options +FollowSymLinks
55
56    ErrorDocument 400 /cgi-bin/koha/errors/400.pl
57    ErrorDocument 401 /cgi-bin/koha/errors/401.pl
58    ErrorDocument 403 /cgi-bin/koha/errors/403.pl
59    ErrorDocument 404 /cgi-bin/koha/errors/404.pl
60    ErrorDocument 500 /cgi-bin/koha/errors/500.pl
61
62    RewriteEngine On    
63 #  Uncomment to turn on rewrite logging
64 #  RewriteLog __LOG_DIR__/koha-intranet-rewrite.log
65 #  RewriteLogLevel 1
66
67    RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
68    RewriteRule (.+) $1?%1%2 [N,R,NE]
69    RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT]
70    RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
71    RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
72 </VirtualHost>