Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.656 2008/09/03 16:14:28 jonasw Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.657 2008/09/04 09:49:30 jonasw Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:2697:    return s;    }    TRACE_LEAVE("");    }    }    TRACE_LEAVE("Returned 'no such file'.");   }      mapping error_file( RequestID id )   { +  mapping res; +  if (id->not_query == "/favicon.ico") { +  // The most popular 404 request ever? Skip the fancy error page. +  res = Roxen.http_string_answer("No such file", "text/plain"); +  } else {    string data = query("ZNoSuchFile"); -  NOCACHE(); +    #if ROXEN_COMPAT <= 2.1    data = replace(data,({"$File", "$Me"}),    ({"&page.virtfile;", "&roxen.server;"}));   #endif -  mapping res = Roxen.http_rxml_answer( data, id, 0, "text/html" ); +  res = Roxen.http_rxml_answer( data, id, 0, "text/html" ); +  }    res->error = 404; -  +  NOCACHE();    return res;   }      mapping auth_failed_file( RequestID id, string message )   {    // Avoid recurssion in 401 messages. This could occure if the    // 401 messages used files that also where access denied.    if(id->misc->generate_auth_failed)    return Roxen.http_low_answer(401, "<title>Access Denied</title>"    "<h2 align=center>Access Denied</h2>");