Shifted the opac out of koha so its now /usr/lib/cgi-bin/opac and /usr/lib/cgi-bin...
authorChris Cormack <crc@liblime.com>
Tue, 20 Nov 2007 18:44:37 +0000 (12:44 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Mon, 17 Dec 2007 15:13:52 +0000 (09:13 -0600)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>

Makefile.PL
etc/koha-httpd.conf
rewrite-config.PL

index 97cfaa2..1441e2f 100755 (executable)
@@ -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;
                }
index 077a76e..24d147c 100644 (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"
index 558f544..a824e67 100644 (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",