User manual

Configuring the Apache2 Web Server
Enabling Apache2's Rewrite module
Koha uses Apache2's Rewrite module to manipulate URLs. To allow this we need
to enable the module using the
a2enmod command:
koha @1i190 -245 : /$ sudo a2enmod rewrite
Configuring the listener
If you intend to use ports other than 80, you will need to configure the
Listen
directive. On Debian we add this directive to the
ports . conf file:
koha @1i190 -245:/$ sudo vi /etc /apache2 /ports.conf
And on openSuSE, we add this to the file
listen. conf:
koha @1i190 -245:/$ sudo vi /etc /apache2 /listen.conf
We add the directive in this manner:
Listen 8080
Editing the OPAC virtual host
Now we modify Koha's virtual hosts file to include elements of our configuration
plan. First we set the IP address in the first line of the Virtual Host block. Something
like this:
## OPAC
<VirtualHost 192.168.1.21:80>
If you want to use any IP address on the server, use " * ":
## OPAC
<VirtualHost *:80>
Next we setup Koha's host name in the
Sp.rverName
directive.
ServerName libcat.mylibrary.org
If are not using a host name, leave this Directive untouched.
Next, we add the
Directory
directive. Make sure you add these lines just before the
< /virtualhost>
tag. Note that this step is not required on Debian.
<Directory /home /koha /kohaclone>
Order allow, deny
Allow from all
< /Directory>
[32]