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 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.531 2003/01/21 13:08:14 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.532 2003/06/10 12:22:14 anders 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:1540:    fid=tmp[1]( file[ strlen(loc) .. ] + id->extra_extension, id);    UNLOCK();    TRACE_LEAVE("");    PROF_LEAVE(Roxen.get_owning_module(tmp[1])->module_name,"location");    if(fid)    {    id->virtfile = loc;       if(mappingp(fid))    { +  TRACE_LEAVE(""); // Location module [...]    TRACE_LEAVE(examine_return_mapping(fid));    TIMER_END(location_modules);    return fid;    }    else    {   #ifdef MODULE_LEVEL_SECURITY    int oslevel = slevel;    slevel = misc_cache[ tmp[1] ][1];    // misc_cache from
Roxen.git/server/base_server/configuration.pike:1577:    );    break;    }    } else    TRACE_LEAVE("");    } else if(strlen(loc)-1==strlen(file) && file+"/" == loc) {    // This one is here to allow accesses to /local, even if    // the mountpoint is /local/. It will slow things down, but...       TRACE_ENTER("Automatic redirect to location_module.", tmp[1]); +  TRACE_LEAVE("");    TRACE_LEAVE("Returning data");       // Keep query (if any).    // FIXME: Should probably keep config <foo>    string new_query = Roxen.http_encode_string(id->not_query) + "/" +    (id->query?("?"+id->query):"");    new_query=Roxen.add_pre_state(new_query, id->prestate);       TIMER_END(location_modules);    return Roxen.http_redirect(new_query, id);
Roxen.git/server/base_server/configuration.pike:1606:    TRACE_LEAVE("No magic requested. Returning -1.");    return -1;    }    TIMER_START(directory_module);    if(dir_module)    {    PROF_ENTER(dir_module->module_name,"directory");    LOCK(dir_module);    TRACE_ENTER("Directory module", dir_module);    fid = dir_module->parse_directory(id); +  TRACE_LEAVE("");    UNLOCK();    PROF_LEAVE(dir_module->module_name,"directory");    }    else    {    TRACE_LEAVE("No directory module. Returning 'no such file'");    return 0;    }    TIMER_END(directory_module);    if(mappingp(fid))