0% found this document useful (0 votes)
404 views

Koha HTTPD Conf

This document contains Apache configuration directives for setting up Koha's OPAC and intranet interfaces. It defines two virtual hosts - one for the OPAC on port 80, and another for the intranet on port 8080. It specifies document roots, error documents, rewrite rules and environment variables for each interface. The directives allow for customizing the OPAC interface through environment variables for CSS, search limits and other overrides.

Uploaded by

mhdridhuan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
404 views

Koha HTTPD Conf

This document contains Apache configuration directives for setting up Koha's OPAC and intranet interfaces. It defines two virtual hosts - one for the OPAC on port 80, and another for the intranet on port 8080. It specifies document roots, error documents, rewrite rules and environment variables for each interface. The directives allow for customizing the OPAC interface through environment variables for CSS, search limits and other overrides.

Uploaded by

mhdridhuan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

# Koha Apache Configuration Directives #NameVirtualHost * ## OPAC <VirtualHost 10.72.1.

51:80> ServerAdmin webmaster@lib DocumentRoot /usr/share/koha/opac/htdocs ServerName lib # ServerAlias opac.mydomain.com ScriptAlias /cgi-bin/koha/ "/usr/share/koha/opac/cgi-bin/opac/" ScriptAlias /index.html "/usr/share/koha/opac/cgi-bin/opac/opac-main.pl" ScriptAlias /opac-search.pl "/usr/share/koha/opac/cgi-bin/opac/search" ScriptAlias /search "/usr/share/koha/opac/cgi-bin/opac/search" ErrorLog /var/log/koha/koha-opac-error_log # TransferLog /var/log/koha/koha-opac-access_log SetEnv KOHA_CONF "/etc/koha/koha-conf.xml" SetEnv PERL5LIB "/usr/share/koha/lib" # # # # # Repeat this virtualhost stanza changing the following environment vars to create multiple OPAC interfaces with custom css and/or search limits: SetEnv OPAC_CSS_OVERRIDE mystyle.css SetEnv OPAC_SEARCH_LIMIT branch:CODE SetEnv OPAC_LIMIT_OVERRIDE 1 Options +FollowSymLinks ErrorDocument 400 /cgi-bin/koha/errors/400.pl ErrorDocument 401 /cgi-bin/koha/errors/401.pl ErrorDocument 403 /cgi-bin/koha/errors/403.pl ErrorDocument 404 /cgi-bin/koha/errors/404.pl ErrorDocument 500 /cgi-bin/koha/errors/500.pl # Rewrite Rules RewriteEngine On # Uncomment to turn on rewrite logging # RewriteLog /var/log/koha/koha-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 10.72.1.51:8080> ServerAdmin webmaster@lib DocumentRoot /usr/share/koha/intranet/htdocs ServerName lib:8080 # ServerAlias intranet.mydomain.com ScriptAlias /cgi-bin/koha/ "/usr/share/koha/intranet/cgi-bin/" ScriptAlias /index.html "/usr/share/koha/intranet/cgi-bin/mainpage.pl" ScriptAlias /search "/usr/share/koha/intranet/cgi-bin/search.pl" ErrorLog /var/log/koha/koha-error_log # TransferLog /var/log/koha/koha-access_log SetEnv KOHA_CONF "/etc/koha/koha-conf.xml" [ Read 79 lines

You might also like