| /lighttpd1.4/src/t/ |
| H A D | test_mod_userdir.c | 14 buffer_clear(&r->physical.path); in test_mod_userdir_reset() 24 assert(buffer_is_empty(&r->physical.path)); in test_mod_userdir_docroot_handler() 31 assert(buffer_is_empty(&r->physical.path)); in test_mod_userdir_docroot_handler() 37 assert(buffer_is_empty(&r->physical.path)); in test_mod_userdir_docroot_handler() 70 assert(buffer_eq_slen(&r->physical.path, in test_mod_userdir_docroot_handler() 79 assert(buffer_eq_slen(&r->physical.path, in test_mod_userdir_docroot_handler() 163 buffer *path = buffer_init(); in test_mod_userdir() local 167 p->defaults.path = path; in test_mod_userdir() 186 free(r.uri.path.ptr); in test_mod_userdir() 188 free(r.physical.path.ptr); in test_mod_userdir() [all …]
|
| H A D | test_mod_alias.c | 18 buffer_copy_string_len(&r.physical.path, CONST_STR_LEN("/tmp/")); in test_mod_alias_check() 24 buffer_copy_string_len(&r.physical.path, CONST_STR_LEN("/tmp/")); in test_mod_alias_check() 31 assert(0 == strcmp(r.physical.path.ptr, in test_mod_alias_check() 36 buffer_copy_string_len(&r.physical.path, CONST_STR_LEN("/tmp/")); in test_mod_alias_check() 41 assert(0 == strcmp(r.physical.path.ptr, "/var/tmp")); in test_mod_alias_check() 50 assert(0 == strcmp(r.physical.path.ptr, "/var/tmp/")); in test_mod_alias_check() 59 assert(0 == strcmp(r.physical.path.ptr, "/var/tmp/ddd")); in test_mod_alias_check() 80 assert(0 == strcmp(r.physical.path.ptr, "/opt/var/tmp/x")); in test_mod_alias_check() 90 assert(0 == strcmp(r.physical.path.ptr, "/ba/x")); in test_mod_alias_check() 100 assert(0 == strcmp(r.physical.path.ptr, "/var/tmp/x")); in test_mod_alias_check() [all …]
|
| H A D | test_keyvalue.c | 52 buffer *path = buffer_init(); in test_keyvalue_pcre_keyvalue_buffer_process() local 59 burl.path = path; in test_keyvalue_pcre_keyvalue_buffer_process() 84 buffer_copy_string_len(path, CONST_STR_LEN("/foo")); in test_keyvalue_pcre_keyvalue_buffer_process() 91 buffer_copy_string_len(path, CONST_STR_LEN("/foo")); in test_keyvalue_pcre_keyvalue_buffer_process() 98 buffer_copy_string_len(path, CONST_STR_LEN("/bar")); in test_keyvalue_pcre_keyvalue_buffer_process() 105 buffer_copy_string_len(path, CONST_STR_LEN("/nofile")); in test_keyvalue_pcre_keyvalue_buffer_process() 112 buffer_copy_string_len(path, CONST_STR_LEN("/redirect")); in test_keyvalue_pcre_keyvalue_buffer_process() 122 buffer_free(path); in test_keyvalue_pcre_keyvalue_buffer_process()
|
| H A D | test_mod_indexfile.c | 16 buffer_copy_string_len(&r->uri.path, CONST_STR_LEN("/")); in test_mod_indexfile_reset() 18 buffer_copy_string_len(&r->physical.path, CONST_STR_LEN("/tmp/")); in test_mod_indexfile_reset() 64 assert(buffer_eq_slen(&r->physical.path, CONST_STR_LEN("/tmp/"))); in test_mod_indexfile_tryfiles() 71 assert(buffer_eq_slen(&r->physical.path, CONST_STR_LEN("/tmp/"))); in test_mod_indexfile_tryfiles() 77 assert(buffer_eq_slen(&r->physical.path, fn, sizeof(fn)-1)); in test_mod_indexfile_tryfiles() 84 assert(buffer_eq_slen(&r->physical.path, fn, sizeof(fn)-1)); in test_mod_indexfile_tryfiles() 108 free(r.uri.path.ptr); in test_mod_indexfile() 109 free(r.physical.path.ptr); in test_mod_indexfile()
|
| H A D | test_mod_staticfile.c | 29 http_response_send_file(r, &r->physical.path, NULL); in run_http_response_send_file() 72 const uint32_t plen = buffer_clen(&r->physical.path); in test_http_response_send_file() 73 buffer_append_string_len(&r->physical.path, CONST_STR_LEN("-nonexistent")); in test_http_response_send_file() 77 buffer_truncate(&r->physical.path, plen); in test_http_response_send_file() 360 buffer_append_string_len(&r->physical.path, CONST_STR_LEN(".exe")); in test_mod_staticfile_process() 403 buffer_copy_string_len(&r.uri.path, CONST_STR_LEN("/")); in test_mod_staticfile() 411 buffer_copy_string_len(&r.physical.path, fn, sizeof(fn)-1); in test_mod_staticfile() 417 buffer_copy_string_len(&r.physical.path, fn, sizeof(fn)-1); in test_mod_staticfile() 425 free(r.uri.path.ptr); in test_mod_staticfile() 427 free(r.physical.path.ptr); in test_mod_staticfile()
|
| H A D | test_mod_ssi.c | 122 buffer_copy_string_len(&r->uri.path, CONST_STR_LEN("/ssi-include.shtml")); in test_mod_ssi_read_fd() 124 buffer_copy_string_len(&r->physical.path, CONST_STR_LEN("/tmp/ssi-include.shtml")); in test_mod_ssi_read_fd() 165 free(r.uri.path.ptr); in test_mod_ssi() 166 free(r.physical.path.ptr); in test_mod_ssi()
|
| /lighttpd1.4/src/ |
| H A D | mod_webdav.c | 2658 if (0==clonefile(src->path.ptr,dst->path.ptr,CLONE_NOFOLLOW)) in webdav_copytmp_rename() 2926 if (0 == rename(src->path.ptr, dst->path.ptr)) in webdav_copymove_file() 2962 if (0 == webdav_linktmp_rename(pconf, &src->path, &dst->path)) { in webdav_copymove_file() 3019 dst->path.ptr[dst->path.used-2] = '\0'; /*(trailing slash)*/ in webdav_mkdir() 3021 dst->path.ptr[dst->path.used-2] = '/'; /*(restore slash)*/ in webdav_mkdir() 3031 dst->path.ptr[dst->path.used-2] = '\0'; /*(trailing slash)*/ in webdav_mkdir() 3034 dst->path.ptr[dst->path.used-2] = '/'; /*(restore slash)*/ in webdav_mkdir() 3112 if (0 == rename(src->path.ptr, dst->path.ptr)) in webdav_copymove_dir() 3146 dst->path.ptr[dst->path.used-2] = '/'; /*(restore slash)*/ in webdav_copymove_dir() 3167 if (0 == rename(src->path.ptr, dst->path.ptr)) { in webdav_copymove_dir() [all …]
|
| H A D | mod_indexfile.c | 86 ? &r->physical.path in __attribute_nonnull__() 112 r->uri.path.ptr, r->physical.path.ptr); in __attribute_nonnull__() 120 buffer_copy_buffer(&r->uri.path, v); in __attribute_nonnull__() 122 BUF_PTR_LEN(&r->physical.path)); in __attribute_nonnull__() 123 buffer_copy_path_len2(&r->physical.path, in __attribute_nonnull__() 130 buffer_append_string_buffer(&r->uri.path, v); in __attribute_nonnull__() 131 buffer_append_path_len(&r->physical.path, BUF_PTR_LEN(v)); in __attribute_nonnull__() 144 if (!buffer_has_slash_suffix(&r->uri.path)) return HANDLER_GO_ON; in URIHANDLER_FUNC() 154 "URI : %s", r->uri.path.ptr); in URIHANDLER_FUNC()
|
| H A D | mod_dirlisting.c | 73 buffer *path; member 123 char *path; member 169 free(hctx->path); in mod_dirlisting_handler_ctx_free() 180 buffer *path = NULL; in mod_dirlisting_parse_cache() local 200 path->ptr); in mod_dirlisting_parse_cache() 206 path->ptr); in mod_dirlisting_parse_cache() 215 cache->path = path; in mod_dirlisting_parse_cache() 577 const buffer *path; in http_list_directory_include_file() local 592 buffer_append_path_len(&r->physical.path, BUF_PTR_LEN(path)); in http_list_directory_include_file() 593 path = &r->physical.path; in http_list_directory_include_file() [all …]
|
| H A D | response.c | 248 pathinfo = r->physical.path.ptr + len; in http_response_physical_path_check() 260 r->physical.path.used = pathinfo - r->physical.path.ptr + 1; in http_response_physical_path_check() 264 r->physical.path.used = pathused; in http_response_physical_path_check() 299 buffer_truncate(&r->uri.path, buffer_clen(&r->uri.path) - len); in http_response_physical_path_check() 300 buffer_truncate(&r->physical.path, (size_t)(pathinfo - r->physical.path.ptr)); in http_response_physical_path_check() 401 if (buffer_is_unset(&r->physical.path)) { in http_response_prepare() 440 && r->uri.path.ptr[0] == '*' && r->uri.path.ptr[1] == '\0') in http_response_prepare() 501 buffer_copy_path_len2(&r->physical.path, in http_response_prepare() 541 "URI : %s", r->uri.path.ptr); in http_response_prepare() 624 buffer_reset(&r->physical.path); in http_response_errdoc_init() [all …]
|
| H A D | mod_userdir.c | 24 const buffer *path; member 54 pconf->path = cpv->v.b; in mod_userdir_merge_config_cpv() 200 BUF_PTR_LEN(p->conf.path)); in mod_userdir_docroot_construct() 252 buffer_append_path_len(b, BUF_PTR_LEN(p->conf.path)); in mod_userdir_docroot_construct() 256 buffer_copy_buffer(&r->physical.path, b); in mod_userdir_docroot_construct() 264 buffer_append_slash(&r->physical.path); in mod_userdir_docroot_construct() 284 if (buffer_is_blank(&r->uri.path)) return HANDLER_GO_ON; in URIHANDLER_FUNC() 287 if (r->uri.path.ptr[0] != '/' || in URIHANDLER_FUNC() 288 r->uri.path.ptr[1] != '~') return HANDLER_GO_ON; in URIHANDLER_FUNC() 296 if (!p->conf.active || !p->conf.path) return HANDLER_GO_ON; in URIHANDLER_FUNC() [all …]
|
| H A D | mod_alias.c | 127 const uint32_t path_len = buffer_clen(&r->physical.path); in mod_alias_remap() 131 const char *uri_ptr = r->physical.path.ptr + basedir_len; in mod_alias_remap() 162 if (path_len + buffer_string_space(&r->physical.path) < nlen) { in mod_alias_remap() 163 buffer_string_prepare_append(&r->physical.path, nlen - path_len); in mod_alias_remap() 164 uri_ptr = r->physical.path.ptr + basedir_len;/*(refresh if alloc)*/ in mod_alias_remap() 166 memmove(r->physical.path.ptr + vlen, in mod_alias_remap() 168 buffer_truncate(&r->physical.path, nlen); in mod_alias_remap() 170 memcpy(r->physical.path.ptr, ds->value.ptr, vlen); in mod_alias_remap()
|
| H A D | http-header-glue.c | 296 buffer_reset(&r->physical.path); in http_response_reset() 327 "not a regular file: %s -> %s", r->uri.path.ptr, path->ptr); in http_response_send_file() 334 "file open failed: %s", path->ptr); in http_response_send_file() 347 "Path : %s", path->ptr); in http_response_send_file() 358 r->uri.path.ptr, path->ptr); in http_response_send_file() 438 buffer_urldecode_path(path); in http_response_xsendfile() 439 if (!buffer_is_valid_UTF8(path)) { in http_response_xsendfile() 448 buffer_path_simplify(path); in http_response_xsendfile() 450 buffer_to_lower(path); in http_response_xsendfile() 452 if (buffer_is_blank(path)) { in http_response_xsendfile() [all …]
|
| H A D | mod_ssi.c | 901 buffer_copy_string_len(tb, r->uri.path.ptr, sl - r->uri.path.ptr + 1); in process_ssi_stmt() 934 sep = r->uri.path.ptr; in process_ssi_stmt() 1021 upsave = r->uri.path; in process_ssi_stmt() 1022 ppsave = r->physical.path; in process_ssi_stmt() 1025 r->physical.path = *p->stat_fn; in process_ssi_stmt() 1030 r->physical.rel_path = r->uri.path; in process_ssi_stmt() 1040 free(r->uri.path.ptr); in process_ssi_stmt() 1041 r->uri.path = upsave; in process_ssi_stmt() 1045 *p->stat_fn = r->physical.path; in process_ssi_stmt() 1046 r->physical.path = ppsave; in process_ssi_stmt() [all …]
|
| H A D | fdevent.c | 200 int fdevent_open_dirname(char *path, int symlinks) { in fdevent_open_dirname() argument 202 char * const c = strrchr(path, '/'); in fdevent_open_dirname() 203 const char * const dname = (NULL != c ? c == path ? "/" : path : "."); in fdevent_open_dirname() 247 int fdevent_mkostemp(char *path, int flags) { in fdevent_mkostemp() argument 252 return (0 == _mktemp_s(path, strlen(path)+1)) in fdevent_mkostemp() 253 && (0 == _sopen_s(&fd, path, _O_CREAT | _O_EXCL | _O_TEMPORARY in fdevent_mkostemp() 259 return mkostemp(path, O_CLOEXEC | flags); in fdevent_mkostemp() 266 const int fd = mkstemp(path); in fdevent_mkostemp()
|
| H A D | http_cgi.c | 46 size_t ulen = buffer_clen(&r->uri.path); in http_cgi_local_redir() 51 && (0 != strncmp(vb->ptr, r->uri.path.ptr, ulen) in http_cgi_local_redir() 172 BUF_PTR_LEN(&r->uri.path)); in http_cgi_headers() 199 BUF_PTR_LEN(&r->uri.path)); in http_cgi_headers() 212 buffer_copy_path_len2(tb, BUF_PTR_LEN(&r->physical.path), in http_cgi_headers() 219 BUF_PTR_LEN(&r->physical.path)); in http_cgi_headers()
|
| H A D | mod_staticfile.c | 118 && array_match_value_suffix(pconf->exclude_ext, &r->physical.path)) { in mod_staticfile_process() 127 if (r->tmp_sce && !buffer_is_equal(&r->tmp_sce->name, &r->physical.path)) in mod_staticfile_process() 130 http_response_send_file(r, &r->physical.path, r->tmp_sce); in mod_staticfile_process()
|
| H A D | mod_access.c | 86 r->uri.path.ptr); in mod_access_reject() 90 r->uri.path.ptr); in mod_access_reject() 132 &r->uri.path, r->conf.force_lowercase_filenames) in URIHANDLER_FUNC()
|
| /lighttpd1.4/doc/outdated/ |
| H A D | magnet.txt | 58 magnet.attract-physical-path-to = ( ... ) 92 * lighty.env["uri.path"] = "/search.php" 93 * lighty.env["uri.path-raw"] = "/search.php" 112 -- 2. changing the physical-path 113 lighty.env["physical.path"] = ... 143 * filename = "<absolute-path>" is required 265 dir = lighty.env["physical.path"] 324 lighty.env["uri.path"] = "/dispatch.fcgi" 325 lighty.env["physical.rel-path"] = lighty.env["uri.path"] 326 lighty.env["physical.path"] = lighty.env["physical.doc-root"] .. lighty.env["physical.rel-path"] [all …]
|
| H A D | userdir.txt | 27 If ``userdir.path`` is set, the path will be appended to the home directory 30 userdir.path = "public_html" 40 userdir.path = "htdocs" 49 userdir.path (required option) 55 userdir.path = "public_html"
|
| H A D | access.txt | 14 The access module is used to deny access to files with given trailing path names. 17 :keywords: lighttpd, trailing path access control 24 The access module is used to deny access to files with given trailing path names. 30 Denies access to all files with any of given trailing path names.
|
| H A D | plugins.txt | 58 called after uri.path (a clean URI without .. and %20) is set 60 called at the end of the logical path handle to get a docroot 62 called if the physical path is set up and checked 66 called after the physical path is created and no other handler is 177 called after uri.path is set 199 called after physical.path is set 221 called after physical.path is set
|
| H A D | fastcgi.txt | 125 :"bin-path": path to the local FastCGI binary which should be 127 :"socket": path to the unix-domain socket 153 If bin-path is set: 172 "bin-path" => "/usr/local/bin/php" 294 "bin-path" => "/usr/local/bin/php", 380 "bin-path" => "/usr/local/bin/php" 391 "bin-path" => "/usr/local/bin/php", 404 "bin-path" => "/usr/local/bin/php", 425 "bin-path" => "/usr/local/bin/php", 467 ## ABSOLUTE path to the spawn-fcgi binary [all …]
|
| H A D | simple-vhost.txt | 26 Every virtual host is in a directory below a base directory in a path that 27 is the same as the name of the vhost. Below this vhost path might be an 40 or if this path does not exist by :: 108 path below the vhost directory
|
| /lighttpd1.4/tests/docroot/ |
| H A D | cgi.pl | 36 my $path = Cwd::getcwd() . "/index.txt"; 37 $path =~ s#([^\w./-])#"%".unpack("H2",$1)#eg; 40 print "X-Sendfile: $path\r\n\r\n";
|