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 - 2001, 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.855 2003/12/16 13:32:59 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.856 2004/01/14 13:48:27 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:2050:    port = prot->default_port;       urls[ url ] = ([ "conf":conf, "path":path, "hostname": host ]);    urls[ ourl ] = urls[url] + ([]);    sorted_urls += ({ url });       array(string)|int(-1..0) required_hosts;       if (is_ip(host))    required_hosts = ({ host }); -  else if( is_ip(opts->ip) ) -  required_hosts = ({ opts->ip }); -  else +  else if(!sizeof(required_hosts = +  filter(replace(opts->ip||"", " ","")/",", is_ip)) )    required_hosts = find_ips_for( host );       if (!required_hosts) {    // FIXME: Used to fallback to ANY.    // Will this work with glob URLs?    report_error(LOC_M(23, "Cannot register URL %s!")+"\n", url);    return 0;    }       mapping m;