From: Jeff D. <da...@da...> - 2001-11-15 15:04:54
|
On Wed, 14 Nov 2001 11:58:38 -0700 "Aredridel" <are...@nb...> wrote: > > You want e.g. the RecentChanges to be at > > http://spirolattic.net/RecentChanges, > > I think. > > > > You can do this, I think, but not, I think (again), in quite the way you > > suggest. You could do it, I'm sure, with mod_rewrite (since you can do > > just about anything with mod_rewrite). It's also probably possible > > to do this using Apache's 'Handler' directive. There's some cryptic > > notes I made on this at http://phpwiki.sf.net/wiki/PageNamesInPathInfo. > > I'm not sure how well Handler works -- I tried this a while ago with less > than success. I'm not sure what's required. Sorry. Yes, the note to which you are replying was written in a drunken stupor. I meant to say "Apache's 'Action' directive". Along with 'SetHandler' this can be used to cause apache to pass all requests for files in a particular directory to a CGI script. I'm still, however, not comletely sure as to how one would go about accomplishing the orignally proposed task, even armed with this tool... > > The reason most people would not want to do this is that if you do, > > the wiki occupies the entire URL name space of your domain. If you ever > > want to add something else (other than wiki) under that domain, you're > > out of luck, since every URL points to a wiki page. > > Unless you use mod_alias, which most people have compiled in, or > mod_rewrite, or many oter modules, or you could write special support for > other URIs in the wiki php scripts. My point, in case it wasn't clear, was that when USE_PATH_INFO is true, and if the wiki were instaled as proposed: http://a.b.c/HomePage is the home page of the wiki. http://a.b.c/foo is another page in the wiki http://a.b.c/cgi-bin/script.cgi is another (wierdly named) page in the wiki. http://a.b.c/icons/rarrow.gif ditto. Sure, you could use mod_alias to make it so that /cgi-bin/script.cgi and /icons/rarrow.gif are not treated as wiki pages, but then wiki pages by those names are inaccessible (at least without further tricks.) Functionally, this may not be a huge problem. Who cares if you can't make a wiki-page named icons/rarrow.gif? But it's messy enough, that it makes putting the wiki at http://a.b.c/wiki/HomePage look like the better alternative to me. |