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.389 2000/11/02 11:33:59 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.390 2000/11/02 16:47:11 per Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.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:2805:   }      DataCache datacache;      static void create(string config)   {    name=config;       // for now only theese two. In the future there might be more variables.    defvar( "data_cache_size", 2048, DLOCALE(274, "Cache:Cache size"), -  TYPE_INT, +  TYPE_INT| VAR_PUBLIC,    DLOCALE(275, "The size of the data cache used to speed up requests "    "for commonly requested files, in KBytes"));       defvar( "data_cache_file_max_size", 50, DLOCALE(276, "Cache:Max file size"), -  TYPE_INT, +  TYPE_INT | VAR_PUBLIC,    DLOCALE(277, "The maximum size of a file that is to be considered for "    "the cache"));          defvar("default_server", 0, DLOCALE(20, "Default site"), -  TYPE_FLAG, +  TYPE_FLAG| VAR_PUBLIC,    DLOCALE(21, "If true, this site will be selected in preference of "    "other sites when virtual hosting is used and no host "    "header is supplied, or the supplied host header does not "    "match the address of any of the other servers.") );       defvar("comment", "", DLOCALE(22, "Site comment"),    TYPE_TEXT_FIELD|VAR_MORE,    DLOCALE(23, "This text will be visible in the administration "    "interface, it can be quite useful to use as a memory helper."));       defvar("name", "", DLOCALE(24, "Site name"), -  TYPE_STRING|VAR_MORE, +  TYPE_STRING|VAR_MORE| VAR_PUBLIC,    DLOCALE(25, "This is the name that will be used in the administration "    "interface. If this is left empty, the actual name of the "    "site will be used."));       defvar("LogFormat",    "404: $host $referer - [$cern_date] \"$method $resource $protocol\" 404 -\n"    "500: $host $referer ERROR [$cern_date] \"$method $resource $protocol\" 500 -\n"    "*: $host - - [$cern_date] \"$method $resource $protocol\" $response $length",    DLOCALE(26, "Logging: Format"),    TYPE_TEXT_FIELD|VAR_MORE,
Roxen.git/server/base_server/configuration.pike:2898:    "</pre>")    ,0, lambda(){ return !query("Log");});       defvar("NoLog", ({ }),    DLOCALE(32, "Logging: No Logging for"), TYPE_STRING_LIST|VAR_MORE,    DLOCALE(33, "Don't log requests from hosts with an IP number which "    "matches any of the patterns in this list. This also affects "    "the access counter log."),    0, lambda(){ return !query("Log");});    -  defvar("Domain", roxen.get_domain(), DLOCALE(34, "Domain"), TYPE_STRING, +  defvar("Domain", roxen.get_domain(), DLOCALE(34, "Domain"), +  TYPE_STRING|VAR_PUBLIC,    DLOCALE(35, "The domain name of the server. The domain name is used "    "to generate default URLs, and to generate email addresses."));       defvar("MyWorldLocation", "http://"+gethostname()+"/", -  DLOCALE(36, "Primary Server URL"), TYPE_URL, +  DLOCALE(36, "Primary Server URL"), TYPE_URL|VAR_PUBLIC,    DLOCALE(37, "This is the main server URL, where your start page is "    "located. Please note that you also have to configure the "    "'URLs' variable."));       defvar("URLs",    Variable.PortList( ({"http://*/"}), VAR_INITIAL,    DLOCALE(38, "URLs"),    DLOCALE(39, "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). The possible protocols "
Roxen.git/server/base_server/configuration.pike:3037:   page.      </blockquote>   </font>   </body>   ",    DLOCALE(58, "No such file message"),TYPE_TEXT_FIELD,    DLOCALE(59, "What to return when there is no resource or file "    "available at a certain location."));    -  definvisvar( "no_delayed_load", 0, TYPE_FLAG ); +  definvisvar( "no_delayed_load", 0, TYPE_FLAG|VAR_PUBLIC );       setvars( retrieve("spider#0", this_object()) );       if (query("throttle"))    {    throttler=.throttler();    throttler->throttle(query("throttle_fill_rate"),    query("throttle_bucket_depth"),    query("throttle_min_grant"),    query("throttle_max_grant"));    }   }      static int arent_we_throttling_server () {    return !query("throttle");   }   static int arent_we_throttling_request() {    return !query("req_throttle");   }