[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Koha-devel] RFC - installer changes
From: |
MJ Ray |
Subject: |
Re: [Koha-devel] RFC - installer changes |
Date: |
Fri, 14 Dec 2007 18:12:43 +0000 |
User-agent: |
Heirloom mailx 12.2 01/07/07 |
Bünzli Daniel <address@hidden> wrote:
> 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/
Yikes! I thought you were going to use the .htaccess rewrites to
avoid merging the two cgi-bin somehow. Does this have implications
for cookies and logins... but then, are librarians special readers
anyway?
> And created a $ROOT/.htaccess with the following content (maybe the
> other rules found in virtual hosts should also go here) :
OK, it's the end of a long week and I've been ill, so let's try some
comments:-
# Make sure perl cgi scripts are running.
> > AddHandler cgi-script .pl
# Start the rewriter.
> > RewriteEngine on
> > RewriteBase /
# Redirect the front pages.
> > RewriteRule ^opac$ cgi-bin/koha/opac-main.pl [R=permanent,L]
> > RewriteRule ^admin$ cgi-bin/koha/mainpage.pl [R=permanent,L]
# The main multi-purpose rewriter.
> > RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
> > RewriteRule (.+) $1?%1%2 [N,R,NE]
# Finally, the usual koha config variables.
> > SetEnv KOHA_CONF "$ROOT/koha/etc/koha-conf.xml"
> > SetEnv PERL5LIB "$ROOT/koha/lib"
# - Why a RewriteCond here not a QSA flag on the Rule?
# - Why a Redirect [R] flag on it? Does that preserve POST data?
Puzzled,
--
MJ Ray http://mjr.towers.org.uk/email.html tel:+44-844-4437-237 -
Webmaster-developer, statistician, sysadmin, online shop builder,
consumer and workers co-operative member http://www.ttllp.co.uk/ -
Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/
- Re: [Koha-devel] RFC - installer changes, (continued)
- Re: [Koha-devel] RFC - installer changes, Galen Charlton, 2007/12/13
- Re: [Koha-devel] RFC - installer changes, MJ Ray, 2007/12/14
- Re: [Koha-devel] RFC - installer changes, Galen Charlton, 2007/12/16
- Re: [Koha-devel] RFC - installer changes, MJ Ray, 2007/12/17
- Re: [Koha-devel] RFC - installer changes, Galen Charlton, 2007/12/17
- Re: [Koha-devel] RFC - installer changes, Vincent Danjean, 2007/12/18
Re: [Koha-devel] RFC - installer changes, Bünzli Daniel, 2007/12/13
[Koha-devel] Re: RFC - installer changes, Galen Charlton, 2007/12/16
Re: [Koha-devel] RFC - installer changes, Bradley D. Peters, 2007/12/16