Better setup for Foswiki (may apply to TWiki as well)
John Rouillard
6 June 2015, 19:26
Hello all:
I was setting up foswiki under hiwatha and thought I would share my
config since I didn't find one online.
I install foswiki under /tools/foswiki and used the following in the
VirtualHost section (note it would be nice to have directory support
for ScriptAlias so I could just have one line:
ScriptAlias = /foswiki/bin/(.*):/tools/foswiki/bin/$1
that defined the file as a CGI that should be executed (even if it
doesn't have an extention).
CGIextension = cgi
VirtualHost { [...]
# configure for foswiki
EnablePathInfo = yes
ScriptAlias = /foswiki/bin/view:/tools/foswiki/bin/view.cgi
ScriptAlias = /foswiki/bin/attach:/tools/foswiki/bin/attach.cgi
ScriptAlias = /foswiki/bin/changes:/tools/foswiki/bin/changes.cgi
ScriptAlias = /foswiki/bin/compare:/tools/foswiki/bin/compare.cgi
ScriptAlias = /foswiki/bin/compareauth:/tools/foswiki/bin/compareauth.cgi
ScriptAlias = /foswiki/bin/configure:/tools/foswiki/bin/configure.cgi
ScriptAlias = /foswiki/bin/edit:/tools/foswiki/bin/edit.cgi
ScriptAlias = /foswiki/bin/jsonrpc:/tools/foswiki/bin/jsonrpc.cgi
ScriptAlias = /foswiki/bin/login:/tools/foswiki/bin/login.cgi
ScriptAlias = /foswiki/bin/logon:/tools/foswiki/bin/logon.cgi
ScriptAlias = /foswiki/bin/manage:/tools/foswiki/bin/manage.cgi
ScriptAlias = /foswiki/bin/oops:/tools/foswiki/bin/oops.cgi
ScriptAlias = /foswiki/bin/preview:/tools/foswiki/bin/preview.cgi
ScriptAlias = /foswiki/bin/previewauth:/tools/foswiki/bin/previewauth.cgi
ScriptAlias = /foswiki/bin/rdiff:/tools/foswiki/bin/rdiff.cgi
ScriptAlias = /foswiki/bin/rdiffauth:/tools/foswiki/bin/rdiffauth.cgi
ScriptAlias = /foswiki/bin/register:/tools/foswiki/bin/register.cgi
ScriptAlias = /foswiki/bin/rename:/tools/foswiki/bin/rename.cgi
ScriptAlias = /foswiki/bin/resetpasswd:/tools/foswiki/bin/resetpasswd.cgi
ScriptAlias = /foswiki/bin/rest:/tools/foswiki/bin/rest.cgi
ScriptAlias = /foswiki/bin/restauth:/tools/foswiki/bin/restauth.cgi
ScriptAlias = /foswiki/bin/save:/tools/foswiki/bin/save.cgi
ScriptAlias = /foswiki/bin/search:/tools/foswiki/bin/search.cgi
ScriptAlias = /foswiki/bin/statistics:/tools/foswiki/bin/statistics.cgi
ScriptAlias = /foswiki/bin/upload:/tools/foswiki/bin/upload.cgi
ScriptAlias = /foswiki/bin/view:/tools/foswiki/bin/view.cgi
ScriptAlias = /foswiki/bin/viewauth:/tools/foswiki/bin/viewauth.cgi
ScriptAlias = /foswiki/bin/viewfile:/tools/foswiki/bin/viewfile.cgi
ScriptAlias = /foswiki/bin/viewfileauth:/tools/foswiki/bin/viewfileauth.cgi
Alias = /foswiki/pub:/tools/foswiki/pub
Alias = /foswiki/robots.txt:/tools/foswiki/robots.txt
[...] }
Along with the following directory stanza:
Directory {
Path = /tools/foswiki/bin
ExecuteCGI = yes
FollowSymlinks = yes
}
plus since foswiki cgi's don't have the .cgi extention I
(symbolically) linked every binary to a .cgi form E.G.
"ln -s view view.cgi".
I expect a similar config would work for TWiki as well.
While this is ugly, it does work. If anybody has a less ugly way to
do it feel free to discuss 8-).
-- rouilj
Hugo Leisink
10 June 2015, 15:45
I tried to install foswiki, but I ran into all sorts of issues which made me give up. So, I can't give any proper feedback, but thanks for the information.
This topic has been closed.