Shifted the opac out of koha so its now /usr/lib/cgi-bin/opac and /usr/lib/cgi-bin/koha by default, rewrite-config.PL and koha-httpd.conf updated

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Chris Cormack 2007-11-20 12:44:37 -06:00 committed by Galen Charlton
parent c938a23bb9
commit 5baba50aed
3 changed files with 7 additions and 4 deletions

View File

@ -237,6 +237,9 @@ and other scripts to koha/
if (-f $src) {
if ($src =~ /(misc|updater|rss)\//) {
$result{$src} = '$(INST_BIN)/koha/'.$src;
}
elsif ($src =~ /opac\//){
$result{$src} = '$(INST_BIN)/cgi-bin/'.$src;
} else {
$result{$src} = '$(INST_BIN)/cgi-bin/koha/'.$src;
}

View File

@ -37,9 +37,9 @@
DocumentRoot __BASE_DIR__/templates/koha-tmpl/
ServerName __WEBSERVER_HOST__:__WEBSERVER_PORT_LIBRARIAN__
# ServerAlias intranet.mydomain.com
ScriptAlias /cgi-bin/koha/ "__CGI_DIR__/"
ScriptAlias /index.html "__CGI_DIR__/mainpage.pl"
ScriptAlias /search "__CGI_DIR__/search.pl"
ScriptAlias /cgi-bin/koha/ "__CGI_DIR__/koha/"
ScriptAlias /index.html "__CGI_DIR__/koha/mainpage.pl"
ScriptAlias /search "__CGI_DIR__/koha/search.pl"
ErrorLog __LOG_DIR__/koha-error_log
# TransferLog __LOG_DIR__/koha-access_log
SetEnv KOHA_CONF "__PREFIX__/share/koha/etc/koha-conf.xml"

View File

@ -72,7 +72,7 @@ $prefix = $ENV{'INSTALL_BASE'} || "/usr";
# <grep -o '__.*__' etc/* | cut -f2 -d: | sort -u | sed -e 's/^/ "/;s/$/" => "",/'
%configuration = (
"__BASE_DIR__" => ($ENV{'INSTALLSITELIB'} || sprintf($prefix."/lib/perl5/site_perl/%vd",$^V))."/koha",
"__CGI_DIR__" => $prefix."/lib/cgi-bin/koha",
"__CGI_DIR__" => $prefix."/lib/cgi-bin",
"__LOG_DIR__" => "/var/log",
"__DB_TYPE__" => "mysql",
"__DB_NAME__" => "koha",