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.492 2001/11/01 14:19:49 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.493 2001/11/07 14:02:17 grubba 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:2341:    return 1;    return 0;   }      array registered_urls = ({}), failed_urls = ({ });   array do_not_log_patterns = 0;   void start(int num)   {    fix_my_url();    + #if 0 +  report_debug(sprintf("configuration:start():\n" +  " registered_urls: ({ %{%O, %}})\n" +  " faileded_urls: ({ %{%O, %}})\n" +  " URLs: ({ %{%O, %}})\n", +  registered_urls, +  failed_urls, +  query("URLs"))); + #endif /* 0 */ +     // Note: This is run as root if roxen is started as root    foreach( (registered_urls-query("URLs"))+failed_urls, string url )    {    registered_urls -= ({ url });    roxen.unregister_url( url );    }       failed_urls = ({ });       foreach( (query( "URLs" )-registered_urls), string url ) -  +  {    if( roxen.register_url( url, this_object() ) )    registered_urls += ({ url });    else    failed_urls += ({ url }); -  +  }    if( !datacache )    datacache = DataCache( );    else    datacache->init_from_variables();       parse_log_formats();    init_log_file();    do_not_log_patterns = query("NoLog");    if(!sizeof(do_not_log_patterns))    do_not_log_patterns = 0;
Roxen.git/server/base_server/configuration.pike:3386:   the server, but in most circumstances the URLs sent by the clients are   used. A URL is deduced from the first entry in 'URLs' if this is left   blank.      <p>Note that setting this doesn't make the server accessible; you must   also set 'URLs'."));       defvar("URLs",    Variable.PortList( ({"http://*/"}), VAR_INITIAL|VAR_NO_DEFAULT,    DLOCALE(38, "Ports: URLs"), -  DLOCALE(0, "Bind to these URLs. You can use '*' and '?' to perform" +  DLOCALE(373, "Bind to these URLs. You can use '*' and '?' to perform"    " globbing (using any of these will default to binding to "    "all IP-numbers on your machine). If you specify a IP# in "    "the field it will take precedence over the hostname.")));       defvar("InternalLoc", "/_internal/",    DLOCALE(40, "Internal module resource mountpoint"),    TYPE_LOCATION|VAR_MORE|VAR_DEVELOPER,    DLOCALE(41, "Some modules may want to create links to internal "    "resources. This setting configures an internally handled "    "location that can be used for such purposes. Simply select "