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 - 2009, 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.1085 2011/08/22 20:45:39 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1086 2011/08/30 12:28:23 grubba 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:2715:    "unknown. Substituting with ANY")+"\n", what);    return 0; // FAIL   }      string normalize_url(string url, void|int port_match_form)   //! Normalizes the given url to a short form.   //!   //! If @[port_match_form] is set, it normalizes to the form that is   //! used for port matching, i.e. what   //! @[roxen.Protocol.find_configuration_for_url] expects. + //! + //! @note + //! Returns @expr{""@} for @[url]s that are incomplete.   {    if (!sizeof (url - " " - "\t")) return "";       Standards.URI ui = Standards.URI(url);    string host = ui->host;       if (lower_case (host) == "any" || host == "::")    host = "*";    else {    // Note: zone_to_ascii() can throw errors on invalid hostnames.
Roxen.git/server/base_server/roxen.pike:2865:    if( (int)opts->nobind )    {    report_warning(    LOC_M(61,"Not binding the port %O - disabled in configuration.")+"\n",    (string) ui );    return 0;    }       string display_url = normalize_url (url, 0);    url = normalize_url (url, 1); +  if (url == "") return 1;    ui = Standards.URI (url);       string protocol = ui->scheme;    string host = ui->host;    if (host == "" || !protocols[protocol]) {    report_error(LOC_M(19,"Bad URL %O for server %O.")+"\n",    ourl, conf->query_name());    }       int port = ui->port || protocols[protocol]->default_port;