val addWordPress = \ loc : (location) ->
location loc with
- rewriteBase "/";
rewriteCond "%{REQUEST_FILENAME}" "!-f" [];
rewriteCond "%{REQUEST_FILENAME}" "!-d" [];
rewriteRule "." "/index.php" [last]
script <- Script;
alias htdocs "/usr/share/moin/htdocs";
- scriptAlias prefix script
+ scriptAlias prefix (end_in_slash script)
end;
{{Add a MoinMoin wiki to a vhost.}}
val moinMoin = \ host : (host) ->
web host with
addMoinMoin where
- Htdocs = "moin";
+ Htdocs = "/moin";
Prefix = "/"
end
end;