[Koha] Please tell how to configure apache httpd.conf file in order to run koha
Reuben Pasquini
rdp0004 at auburn.edu
Fri Apr 4 02:34:43 NZDT 2008
Hi Nez,
The following works for me.
Save the file to
/etc/apache2/sites-available/koha
, and setup a link
ln -s /etc/apache2/sites-enabled/005-koha
or whatever.
You'll also need to have the NameVirtualHost lines in
one of your config files (I put them in
sites-enabled/default).
Good luck!
Reuben
/etc/apache2/sites-enabled$ grep NameVirtual 001-default
NameVirtualHost *:80
NameVirtualHost *:9080
/etc/apache2/sites-enabled$ cat 005-koha
# Koha Apache Configuration Directives
#NameVirtualHost *
## OPAC
<VirtualHost *:80>
ServerName your-server.lib.bla.edu
ServerAdmin your-admin at bla.edu
DocumentRoot /usr/share/koha/opac/htdocs
# 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"
Options +FollowSymLinks
# 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
#Listen 9080
<VirtualHost *:9080>
ServerAdmin your-admin at bla.edu
DocumentRoot /usr/share/koha/intranet/htdocs
ServerName your-server.lib.bla.edu:9080
# 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"
SetEnv PERL5LIB "/usr/share/koha/lib"
Options +FollowSymLinks
RewriteEngine On
# Uncomment to turn on rewrite logging
# RewriteLog /var/log/koha/koha-intranet-rewrite.log
# RewriteLogLevel 1
RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
RewriteRule (.+) $1?%1%2 [N,R,NE]
RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT]
RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
</VirtualHost>
>>> "Anahit Hovhannisyan" <anahit at flib.sci.am> 4/2/2008 11:24 PM >>>
Please help me, I have installed koha 2.2.9 on Ubuntu 7.10 desktop
edition without any problem , anybody can help me how to configure
apache
httpd.conf file in
order to run koha.
Thanks in advance.
nezabudka
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date:
4/2/2008
4:14 PM
_______________________________________________
Koha mailing list
Koha at lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha
More information about the Koha
mailing list