[Pmwiki-users] AliasMatch and virtual hosts
Christian Ridderström
chr
Sat Nov 22 15:06:20 CST 2003
Hi
A while back I asked how I could use 'http://wiki.lyx.org' rather than
'http://wiki.lyx.org/pmwiki.php', and got the advice to add the following
line to Apache's configuration-file:
AliasMatch ^/([A-Z].*) /file/path/to/pmwiki.php/$1
Now I've finally gotten access to the machine where the server runs (but
only read access to Apache), so I've discovered that the configuration
file is actually stored in a separate file:
/etc/httpd/virtual.d/wiki.conf
that looks like this:
<VirtualHost *>
ServerAdmin wiki at lyx.org
DocumentRoot /home/lyx/www/pmwiki
ServerName wiki.lyx.org:80
ErrorLog logs/wiki-error_log
CustomLog logs/wiki-access_log common
AddHandler cgi-script .cgi
DirectoryIndex pmwiki.php
<Directory "/home/lyx/www/pmwiki">
AcceptPathInfo on
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Does anyone know if it's possible to add an 'AliasMatch' to this file
instead? And if so, should the line look like this?
AliasMatch ^/([A-Z].*) /home/lyx/www/pmwiki/pmwiki.php/$1
or like this?
AliasMatch ^/([A-Z].*) /pmwiki.php/$1
cheers
/Christian
--
Dr. Christian Ridderstr?m, +46-8-768 39 44 http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list