This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Yaws and trac
Trac is an amazingly good bugtracking system. To run under Yaws.
1. yaws.conf
......
<server wiki.tail-f.com>
port = 443
listen = 192.168.1.43
appmods = </viewvc , viewvc> </trac , trac>
docroot = /store/wiki/wiki
<auth>
dir = /
realm = My-wiki
user ........
2.
- cat trac.erl
-module(trac).
-export([out/1]).
-include_lib("yaws/include/yaws_api.hrl").
out(Arg) ->
Pathinfo = Arg#arg.appmoddata,
RemoteUser = case (Arg#arg.headers)#headers.authorization of
{User, _Pass, _Type} ->
[{"REMOTE_USER", User}];
_ ->
[]
end,
Env = [{"SCRIPT_NAME", "/trac"},
{"TRAC_ENV", "/store/wiki/trac"}] ++ RemoteUser,
yaws_cgi:call_cgi(Arg, undefined, script(), Pathinfo, Env).
script() ->
"/usr/local/share/trac/cgi-bin/trac.cgi".
3.
# cat viewvc.erl
-module(viewvc).
-export([out/1]).
-include_lib("yaws/include/yaws_api.hrl").
out(Arg) ->
Pathinfo = Arg#arg.appmoddata,
Env = [{"SCRIPT_NAME", "/viewvc/"}],
yaws_cgi:call_cgi(Arg, undefined, script(), Pathinfo, Env).
script() ->
"/usr/local/viewvc-1.0-dev/bin/cgi/viewcvs.cgi".







