Changeset 446

Show
Ignore:
Timestamp:
07/15/2005 01:26:16 PM (3 years ago)
Author:
jan
Message:

made errorfile-prefix conditional

Location:
branches/lighttpd-1.3.x/src
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • branches/lighttpd-1.3.x/src/base.h

    r399 r446  
    225225        buffer *dirlist_css; 
    226226        buffer *dirlist_encoding; 
     227        buffer *errorfile_prefix; 
    227228         
    228229        unsigned short dir_listing; 
     
    408409        buffer *groupname; 
    409410         
    410         buffer *errorfile_prefix; 
    411411        buffer *license; 
    412412        buffer *pid_file; 
  • branches/lighttpd-1.3.x/src/config.c

    r413 r446  
    9494        cv[0].destination = srv->srvconf.bindhost; 
    9595        cv[1].destination = srv->srvconf.error_logfile; 
    96         cv[2].destination = srv->srvconf.errorfile_prefix; 
    9796        cv[3].destination = srv->srvconf.changeroot; 
    9897        cv[4].destination = srv->srvconf.username; 
     
    128127                s->error_handler = buffer_init(); 
    129128                s->server_tag    = buffer_init(); 
     129                s->errorfile_prefix = buffer_init(); 
    130130                s->dirlist_css   = buffer_init(); 
    131131                s->dirlist_encoding = buffer_init(); 
     
    143143                s->global_bytes_per_second_cnt = 0; 
    144144                s->global_bytes_per_second_cnt_ptr = &s->global_bytes_per_second_cnt; 
     145                 
     146                cv[2].destination = s->errorfile_prefix; 
    145147                 
    146148                cv[7].destination = s->server_tag; 
     
    209211        PATCH(use_xattr); 
    210212        PATCH(error_handler); 
     213        PATCH(errorfile_prefix); 
    211214        PATCH(follow_symlink); 
    212215        PATCH(server_tag); 
     
    214217        PATCH(global_kbytes_per_second); 
    215218        PATCH(global_bytes_per_second_cnt); 
     219         
    216220        con->conf.global_bytes_per_second_cnt_ptr = &s->global_bytes_per_second_cnt; 
    217221        buffer_copy_string_buffer(con->server_name, s->server_name); 
     
    255259                        } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("server.error-handler-404"))) { 
    256260                                PATCH(error_handler); 
     261                        } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("server.errorfi"))) { 
     262                                PATCH(errorfile_prefix); 
    257263                        } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("server.indexfiles"))) { 
    258264                                PATCH(indexfiles); 
  • branches/lighttpd-1.3.x/src/connections.c

    r367 r446  
    323323                        buffer_reset(con->physical.path); 
    324324                         
    325                         if (srv->srvconf.errorfile_prefix->used) { 
    326                                 buffer_copy_string_buffer(con->physical.path, srv->srvconf.errorfile_prefix); 
     325                        if (con->conf.errorfile_prefix->used) { 
     326                                buffer_copy_string_buffer(con->physical.path, con->conf.errorfile_prefix); 
    327327                                buffer_append_string(con->physical.path, get_http_status_body_name(con->http_status)); 
    328328                        } 
  • branches/lighttpd-1.3.x/src/server.c

    r413 r446  
    137137        CLEAN(srvconf.changeroot); 
    138138        CLEAN(srvconf.bindhost); 
    139         CLEAN(srvconf.errorfile_prefix); 
    140139        CLEAN(srvconf.license); 
    141140        CLEAN(srvconf.event_handler); 
     
    217216        CLEAN(srvconf.changeroot); 
    218217        CLEAN(srvconf.bindhost); 
    219         CLEAN(srvconf.errorfile_prefix); 
    220218        CLEAN(srvconf.license); 
    221219        CLEAN(srvconf.event_handler);