anchor.diff:     Response = get_record(list_to_integer(RecNum)),
      {proceed, [{response, {200, Response}}]};
   do(#mod{request_uri = Uri})  when Uri == "/" ->
  -   {ok, Bin} = file:read_file("/www/index.html"),
  +   {ok, Bin} = file:read_file(get_doc_root() ++ "/www/index.html"),
      {proceed, [{response, {200, binary_to_list(Bin)}}]};
   do(#mod{request_uri = Uri})  when Uri == "/favicon.ico" ->
      {proceed, [{response, {404, ""}}]};
   do(#mod{request_uri = Uri}) ->
  -   case file:read_file(Uri) of
  +   case file:read_file(get_doc_root() ++ Uri) of
         {ok, Bin} ->
            {proceed, [{response, {200, binary_to_list(Bin)}}]};
         {error, Reason} ->
  
positive.code: 
  -export([do/1]).
  
  start() -> start([]).
  start(Options) ->
      supervisor:start_child(sasl_sup,
  
negative.code:          {proceed, [{response, {404, "ERROR: Page " ++ Uri ++ " not found."}}]}
     end.
  
  
  %%=============================================================
  %% utils
  %%=============================================================
  
  get_doc_root() ->
     gen_server:call(log_viewer_inets, get_doc_root).
  
  get_option(OpName, Options, Default) ->
     case proplists:get_value(OpName, Options) of
        undefined ->
           case application:get_env(OpName) of
              undefined ->
                 Default;
              {ok, Val} ->
                 Val
           end;
        Value ->
           Value
     end.
  
  rescan(Query) when is_list(Query) ->
  