Curiouser and curiouser!

In .htaccess (I don't have access to the Apache config), I've got:

ReWriteEngine on
ReWriteRule ^moinx(/.*)? moin.cgi$1
ReWriteRule ^moin(/.*)? _moin.cgi$1
RequestHeader set X-Moin-Location /moin

Both moin.cgi and _moin.cgi contain the same contents:

#!/bin/sh
/home/gdinwiddie/moin-1.8.4-installed/moin.cgi

farmconfig.py contains

  ("gdinwiddie",  r"^([A-Za-z0-9-]*\.)*gdinwiddie.com/moin(x)?(/.*)?$"),

to map with our without the 'x'.

http://gdinwiddie.com/moin/SystemInfo works
http://gdinwiddie.com/moinx/SystemInfo does NOT work (gives FrontPage)

If I change .htaccess to include

ReWriteRule ^moinx(/.*)? _moin.cgi$1

then they both work.

Why is the name of the cgi script significant in 1.8.4 but not in 1.5.6? 
  Is this also the case in the upcoming 1.9.0 release?

  - George

George Dinwiddie wrote:
> I'm finally getting around to upgrading from 1.5.6, and I've run into a 
> snag.  On several wikis in my farm, the URL is of the form 
> http://server/moin using mod-rewrite on a multiuser ISP machine:
> 
> ReWriteRule ^moin(/.*)? moin.cgi$1
> 
> With 1.8.4 this gives me the FrontPage all the time (and an error in the 
> log).  Using
> 
> ReWriteRule ^moinx(/.*)? moin.cgi$1
> 
> works, but this means that URLs that have been publicized for many years 
> will be wrong.  Any suggestions for how to workaround this?
> 
>   - George
> 


-- 
  ----------------------------------------------------------------------
   * George Dinwiddie *                      http://blog.gdinwiddie.com
   Software Development                    http://www.idiacomputing.com
   Consultant and Coach                    http://www.agilemaryland.org
  ----------------------------------------------------------------------


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user

Reply via email to