I've just moved from Redhat to Ubuntu. I'm now using Apache2. I got
wiki to where it was working without any rewriting and using url's of
the form
http://www.mercuryspacecraft.com/wiki/index.php/Main_Page
I had it installed in the wiki subdirectory of the virtual hosts document root
I then tried to once again "prettify" the urls, and to separate w from
wiki as described in
http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url
Using the Alias statements instead of rewrite rules
Now I can't make it work. I'm confused as to where I want to name the
physical install path, should it be w or wiki. Since the Aliases seem
to be going from /wiki... to /installpath/w... I think that it should
be in /var/www/w which is where I've put it.
THe only thing which semi works is if I use a url like
http://www.mercuryspacecraft.com/index.php/Main_Page
but thats broken, it looks like it isn't getting the style sheets.
The Apache error log contains:
[Wed Jul 13 15:04:07 2005] [error] [client 166.82.49.174] File does
not exist: /var/www/wiki, referer:
http://www.mercuryspacecraft.com/w/index.php/Main_Page
Here's what I have in my Virtual server:
<VirtualHost *>
ServerAdmin webmaster(a)mercuryspacecraft.com
ServerName
www.mercuryspacecraft.com
DocumentRoot /var/www
AcceptPathInfo on
Alias /wiki/stylesheets /var/www/w/stylesheets
Alias /wiki/style /var/www/w/style
Alias /wiki/images /var/www/w/images
Alias /wiki/skins /var/www/w/skins
Alias /wiki/redirect.php /var/www/w/redirect.php
Alias /wiki/textvc.php /var/www/w/textvc.php
Alias /wiki/index.php /var/www/w/index.php
Alias /wiki /var/www/w
</VirtualHost>
And the relevant parts of my LocalSettings.php
$wgScriptPath = "/wiki";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";
$wgArticlePath = "$wgScript?title=$1";
Any ideas?