On Tue, 1 Feb 2005, Lars Gullik Bjønnes wrote:

> This is the aliases I ended up using:
> 
>         AliasMatch ^/([?A-Z].*) /home/lyx/www/pmwiki/pmwiki.php/$1
>         Alias /pub/ /home/lyx/www/pmwiki/pub/
>         Alias /uploads/ /home/lyx/www/pmwiki/uploads/
>         Alias /beta/ /home/lyx/www/pmwiki/beta/
>         Alias /pmwiki.php /home/lyx/www/pmwiki/pmwiki.php

I couldn't find anything directly related to the wiki that didn't work, 
but I do have some questions:

* Why are the aliases for pub/ etc needed???

* How come I can't browse the directory beta/ for instance?
  I think I was able to do that before, but I'm not sure. It's not 
  strictly necessary either. In addition, I just created the directory
  test/ and I can't browse that either.

* I managed to install pmwiki2 (for when I upgrade the installation)
  to the directory test/pmwiki-cvs, i.e. at the URI
        http://wiki.lyx.org/test/pmwiki-cvs/pmwiki.php
  but I was really surprised that it works to simply enter
        http://wiki.lyx.org/test/pmwiki-cvs
  Have you redefined the name of the 'index'-file?

* Oh, isn't it kind of strange that the pmwiki installation works at
        test/pmwiki-cvs/pmwiki.php
  but not at
        beta/beta/pmwiki.php?
  where I instead get this message:

        Forbidden

        You don't have permission to access /beta/pmwiki.php on this server.

        Additionally, a 403 Forbidden error was encountered while trying to use 
an 
        ErrorDocument to handle the request.

Anyway, things seems to be working although I suspect that the Aliases 
above are not really needed? Maybe the even screw things up?

> I also had to change 
> 
> pmwiki.php:
> //$ScriptUrl = 'http://'.$HTTP_SERVER_VARS['HTTP_HOST'];
> //$ScriptUrl .= $HTTP_SERVER_VARS['SCRIPT_NAME'];
> $ScriptUrl = "";
> 
> //$PubDirUrl = preg_replace("#/[^/]*\$#","/pub",$ScriptUrl,1);
> $PubDirUrl = "/pub";

I reverted thesed changes and moved them into  local/config.php (which is 
where they should be).

> local/upload.php:
> //SDV($UploadUrlFmt,preg_replace("#/[^/]*\$#","/$UploadDir",$ScriptUrl,1));
> SDV($UploadUrlFmt, "/" . $UploadDir);

This one stayed since local/upload.php is my hack.

> Please tell me what doesn't work now.

I think things are working overall now. Should I ask people on the 
user's list to keep their eyes open perhaps?

Thanks for fixing this.

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr



Reply via email to