Le 14 déc. 07 à 13:34, MJ Ray a écrit :
Really? The few file names which are shared seem to be copies of the
same file (checked with diff),
True, the result of
diff -s -r intranet/cgi-bin opac/cgi-bin/opac
reveals this.
I managed to avoid virtual hosts by doing the following. But it is
really an ugly solution. I installed koha in single mode at $ROOT/
koha. $ROOT is the root from which files are served.
Then I did
> ln -s $ROOT/intranet/htdocs/intranet-tmpl $ROOT/intranet-tmpl
> ln -s $ROOT/opac/htdocs/opac-tmpl $ROOT/opac-tmpl
> mkdir -p $ROOT/cgi-bin/koha
> cp -R $ROOT/koha/intranet/cgi-bin/* $ROOT/cgi-bin/koha/
> cp -R $ROOT/koha/opac/cgi-bin/opac/* $ROOT/cgi-bin/koha/
And created a $ROOT/.htaccess with the following content (maybe the
other rules found in virtual hosts should also go here) :
AddHandler cgi-script .pl
RewriteEngine on
RewriteBase /
RewriteRule ^opac$ cgi-bin/koha/opac-main.pl [R=permanent,L]
RewriteRule ^admin$ cgi-bin/koha/mainpage.pl [R=permanent,L]
RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
RewriteRule (.+) $1?%1%2 [N,R,NE]
SetEnv KOHA_CONF "$ROOT/koha/etc/koha-conf.xml"
SetEnv PERL5LIB "$ROOT/koha/lib"
Best,
Daniel
_______________________________________________
Koha-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/koha-devel