Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS. - constant cvs_version = "$Id: configuration.pike,v 1.427 2001/04/23 15:55:34 nilsson Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.428 2001/05/03 17:26:41 per 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:2029:    if ( !id->misc )    id->misc = ([]);    if ( !id->misc->common )    id->misc->common = ([]);       fake_id = id->clone_me();       fake_id->misc->common = id->misc->common;    fake_id->misc->internal_get = !not_internal;    -  s = Roxen.fix_relative (s, id); -  +     if (fake_id->scan_for_query)    // FIXME: If we're using e.g. ftp this doesn't exist. But the    // right solution might be that clone_me() in an ftp id object    // returns a vanilla (i.e. http) id instead when this function is    // used.    s = fake_id->scan_for_query (s); -  +  +  s = Roxen.fix_relative (s, id); +     fake_id->raw_url=s;    fake_id->not_query=s;       if(!(m = get_file(fake_id,0,!not_internal))) {    // Might be a PATH_INFO type URL.    m_delete (fake_id->misc, "path_info");    array a = open_file( s, "r", fake_id, !not_internal );    if(a && a[0]) {    m = a[1];    m->file = a[0];