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.999 2008/11/04 18:05:16 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1000 2008/12/03 14:44:44 jonasw 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:1487:    foreach (urls; string u; mapping(string:mixed) q)    {    URL2CONF_MSG("Trying %O:%O\n", u, q);    if( glob( u+"*", url_with_port ) )    {    URL2CONF_MSG("glob match\n");    if (Protocol p = q->port)    if (mapping(string:mixed) url_data =    p->find_url_data_for_url (url_with_port, 0 ))    { -  Configuration c = url_data->c; -  URL2CONF_MSG("Found config: %O\n", url_data->c); +  Configuration c = url_data->conf; +  URL2CONF_MSG("Found config: %O\n", url_data->conf);       if ((only_this_conf && (c != only_this_conf)) ||    (sscanf (u, "%*[^*?]%*c") == 2 && // u contains * or ?.    // u is something like "http://*:80/"    (!host_is_local(url->host)))) {    // Bad match.    URL2CONF_MSG("Bad match: only_this_conf:%O, host_is_local:%O\n",    (only_this_conf && (c == only_this_conf)),    (!host_is_local(url->host)));    c = 0;