Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1015 2009/01/11 15:55:18 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1016 2009/01/11 16:02:32 mast Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:1817:    if(!mu) mu=get_iterator(urls)->value();    URL2CONF_MSG ("%O %O Only one configuration: %O\n",    this, url, mu->conf);    return mu;    }    } else if (!refs) {    URL2CONF_MSG("%O %O No active URLS!\n", this, url);    return 0;    }    -  url = lower_case( url ); +     URL2CONF_MSG("sorted_urls: %O\n"    "url: %O\n", sorted_urls, url);    // The URLs are sorted from longest to shortest, so that short    // urls (such as http://*/) will not match before more complete    // ones (such as http://*.roxen.com/)    foreach( sorted_urls, string in )    {    if( glob( in+"*", url ) )    {    URL2CONF_MSG ("%O %O sorted_urls: %O\n", this, url, urls[in]->conf);
Roxen.git/server/base_server/roxen.pike:2651:    {    report_warning(    LOC_M(61,"Not binding the port %O, disabled in configuration")+"\n",    (string) ui );    return 0;    }    if (ui->host == "any" || ui->host == "::")    ui->host = "*";    else    // FIXME: Maybe Standards.URI should do this internally? -  ui->host = Standards.IDNA.zone_to_ascii (ui->host); +  ui->host = lower_case (Standards.IDNA.zone_to_ascii (ui->host));       protocol = ui->scheme;    host = ui->host;    if (!sizeof(host || "") || !protocols[protocol]) {    report_error(LOC_M(19,"Bad URL '%s' for server `%s'")+"\n",    (string) ui, conf->query_name());    }    if (!ui->port)    ui->port = protocols[protocol]->default_port;    port = ui->port;