Package: twiki
Version: 4.1.2-3
Severity: normal

Whenever twiki was installed, the apache.conf file contains RewriteRules like :

RedirectMatch /twiki/?$ http://localhost/cgi-bin/twiki/view$1
RedirectMatch /twiki(/([A-Z].*)?)?$ http://localhost/cgi-bin/twiki/view$1

In the example above, the address for the host input in debconf question was 
localhost.

However, when reconfiguring, the new value input for that host won't be 
modified in apache.conf :(

I think the problem comes from the way the file is modified by the postinst 
script, which does this :
perl -pi~ -e '$U=q{'"$RET"'}; s{http://your.domain.com}{$U}g;' 
/etc/twiki/LocalSite.cfg
perl -pi~ -e '$U=q{'"$RET"'}; s{http://your.domain.com}{$U}g;' 
/etc/twiki/apache.conf

This takes for granted that the file initally contains stuff like :
RedirectMatch /twiki(/([A-Z].*)?)?$ http://your.domain.com/cgi-bin/twiki/view$1

The substitution regex should look for a RewriteRule and not only the URL base.

Hope this helps,
-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-vserver-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages twiki depends on:
ii  apache2.2-common           2.2.6-1       Next generation, scalable, extenda
ii  debconf [debconf-2.0]      1.5.17        Debian configuration management sy
pn  libalgorithm-diff-perl     <none>        (no description available)
pn  libcgi-session-perl        <none>        (no description available)
ii  libdigest-sha1-perl        2.11-2        NIST SHA-1 message digest algorith
pn  liberror-perl              <none>        (no description available)
ii  libhtml-parser-perl        3.56-1        A collection of modules that parse
pn  liblocale-maketext-lexicon <none>        (no description available)
pn  libtext-diff-perl          <none>        (no description available)
ii  liburi-perl                1.35.dfsg.1-1 Manipulates and accesses URI strin
ii  perl [libmime-base64-perl] 5.8.8-12      Larry Wall's Practical Extraction 
ii  perl-modules [libnet-perl] 5.8.8-12      Core Perl modules
ii  rcs                        5.7-21        The GNU Revision Control System

twiki recommends no packages.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to