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.584 2004/08/27 15:17:39 anders Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.585 2004/10/11 19:05:38 mast 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:1874:    } 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) + "/" + +  string new_query = Roxen.http_encode_invalids(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);    }    }    TIMER_END(location_modules);    }