1 Example /etc/koha.conf file entries
7 includes=/usr/local/www/koha/htdocs/includes
9 Please note the final line (includes=path) - The path entry can be
10 used as an alternative to manually editing the path in Output.pm file
14 --------------------------------------------------------------------------------
15 Example apache httpd.conf entries:
16 Koha makes extensive use of Server Side Includes (SSI):
19 http://httpd.apache.org/docs/mod/mod_include.html
21 If your page headers and footers do not show, then you may need to
22 re-configure your web server.
24 Here is an example of entries suitable for Apache httpd.conf:
27 <VirtualHost 111.222.333.1>
28 ServerName koha.example.com
29 ServerPath /var/www/library
30 DocumentRoot /var/www/library/koha/html
31 Alias /images/ "/var/www/library/koha/html/images/"
32 ScriptAlias /cgi-bin/koha/ "/var/www/library/koha/cgi-bin/"
33 SetEnv PERL5LIB "/var/www/library/modules"
34 ErrorLog /var/log/httpd/koha-error_log
36 # ======== koha uses Server Side Includes =========
37 # Normally here, use the same path as "DocRoot" above
38 <Directory "/var/www/library/koha/html">
42 # First, you MUST enable +Includes or +IncludesNoExec
44 Options +Includes -FollowSymlinks -Indexes
46 # Second, you must also configure one of following:
48 # 1. server-parsed content (SSI) for files ending in ".html"
50 AddHandler server-parsed .html
52 # ...OR... (not "AND" !!!!)...
54 # 2. Allow SSI if executable bit set using "XBitHack"
55 # XBitHack on|off|full
57 # XBitHack on - any file that has the user-execute bit
58 # - set will be treated as a server-parsed html doc.
59 # - The "full" = "on" but, in addition, will test the
60 # - group-execute bit. If the group execute bit is set
61 # - then the Last-modified date of the returned file
62 # - is sent. If group-execute bit is not set, then no
63 # - last-modified date is sent.
64 # - Setting this bit allows clients and proxies to
65 # - cache the result of the request!
67 # For example, enable XBitHack (on) if you want to
68 # - include non-executable content in documents like:
69 # <!--#include virtual="/includes/footer.inc" -->
70 # <!--#include virtual="/cgi-bin/counter.pl" -->
74 # Remember - do not use XBitHack if using AddHandler!
78 <VirtualHost 111.222.333.1>
79 ServerName opac.example.com
80 ServerPath /var/www/library
81 DocumentRoot /var/www/library/opac/html
82 Alias /images/ "/var/www/library/opac/html/images/"
83 ScriptAlias /cgi-bin/opac/ "/var/www/library/opac/cgi-bin/"
84 SetEnv PERL5LIB "/var/www/library/modules"
85 ErrorLog /var/log/httpd/opac-error_log
87 <Directory "/var/www/library/opac/html">
89 Options +Includes -FollowSymLinks -Indexes
90 AddHandler server-parsed .html
95 Read your web server docs for more information about how Server Side