Home
last modified time | relevance | path

Searched refs:physical (Results 1 – 25 of 33) sorted by relevance

12

/lighttpd1.4/src/t/
H A Dtest_mod_alias.c29 assert(0 == strcmp(r.physical.basedir.ptr, in test_mod_alias_check()
31 assert(0 == strcmp(r.physical.path.ptr, in test_mod_alias_check()
40 assert(0 == strcmp(r.physical.basedir.ptr, "/var/tmp")); in test_mod_alias_check()
41 assert(0 == strcmp(r.physical.path.ptr, "/var/tmp")); in test_mod_alias_check()
49 assert(0 == strcmp(r.physical.basedir.ptr, "/var/tmp/")); in test_mod_alias_check()
50 assert(0 == strcmp(r.physical.path.ptr, "/var/tmp/")); in test_mod_alias_check()
89 assert(0 == strcmp(r.physical.basedir.ptr, "/ba/")); 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()
103 free(r.physical.path.ptr); in test_mod_alias_check()
[all …]
H A Dtest_mod_userdir.c13 buffer_clear(&r->physical.basedir); in test_mod_userdir_reset()
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()
96 assert(buffer_eq_slen(&r->physical.path, in test_mod_userdir_docroot_handler()
187 free(r.physical.basedir.ptr); in test_mod_userdir()
188 free(r.physical.path.ptr); in test_mod_userdir()
[all …]
H A Dtest_mod_indexfile.c17 buffer_copy_string_len(&r->physical.doc_root, CONST_STR_LEN("/tmp")); 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()
109 free(r.physical.path.ptr); in test_mod_indexfile()
110 free(r.physical.doc_root.ptr); in test_mod_indexfile()
H A Dtest_mod_ssi.c121 buffer_copy_string_len(&r->physical.doc_root, CONST_STR_LEN("/tmp")); in test_mod_ssi_read_fd()
123 buffer_copy_string_len(&r->physical.rel_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()
166 free(r.physical.path.ptr); in test_mod_ssi()
167 free(r.physical.rel_path.ptr); in test_mod_ssi()
168 free(r.physical.doc_root.ptr); in test_mod_ssi()
H A Dtest_mod_staticfile.c29 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()
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()
427 free(r.physical.path.ptr); in test_mod_staticfile()
428 free(r.physical.rel_path.ptr); in test_mod_staticfile()
429 free(r.physical.doc_root.ptr); in test_mod_staticfile()
/lighttpd1.4/src/
H A Dresponse.c248 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()
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()
455 buffer_clear(&r->physical.doc_root); in http_response_prepare()
477 buffer *b = &r->physical.rel_path; in http_response_prepare()
493 buffer_to_lower(&r->physical.rel_path); in http_response_prepare()
500 buffer_copy_buffer(&r->physical.basedir, &r->physical.doc_root); in http_response_prepare()
624 buffer_reset(&r->physical.path); in http_response_errdoc_init()
[all …]
H A Dmod_alias.c124 uint32_t basedir_len = buffer_clen(&r->physical.basedir); in mod_alias_remap()
125 if (buffer_has_pathsep_suffix(&r->physical.basedir)) --basedir_len; in mod_alias_remap()
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()
[all …]
H A Dmod_indexfile.c86 ? &r->physical.path in __attribute_nonnull__()
87 : &r->physical.doc_root; /* index file relative to doc_root */ in __attribute_nonnull__()
112 r->uri.path.ptr, r->physical.path.ptr); in __attribute_nonnull__()
122 BUF_PTR_LEN(&r->physical.path)); in __attribute_nonnull__()
123 buffer_copy_path_len2(&r->physical.path, in __attribute_nonnull__()
124 BUF_PTR_LEN(&r->physical.doc_root), in __attribute_nonnull__()
131 buffer_append_path_len(&r->physical.path, BUF_PTR_LEN(v)); in __attribute_nonnull__()
H A Dmod_webdav.c297 typedef physical physical_st;
1050 webdav_xml_href(b, &r->physical.rel_path); in webdav_xml_doc_multistatus_response()
4365 pb.dst = &r->physical; in mod_webdav_propfind()
4794 int rc = webdav_copytmp_rename(pconf, &r->physical, &r->physical, &fd); in mod_webdav_put_range()
5171 remain = r->physical.rel_path.used - 1 - i; in mod_webdav_copymove_b()
5177 r->physical.path.ptr + r->physical.path.used-1-remain, in mod_webdav_copymove_b()
5203 if (r->physical.path.used <= dst_path->used in mod_webdav_copymove_b()
5205 r->physical.path.used-1) in mod_webdav_copymove_b()
5662 { r->physical.rel_path.ptr, r->physical.rel_path.used, 0}, /*lockroot*/ in mod_webdav_lock()
5948 { r->physical.rel_path.ptr, r->physical.rel_path.used, 0}, /*lockroot*/ in mod_webdav_unlock()
[all …]
H A Dreqpool.c193 buffer_reset(&r->physical.path); in request_reset_ex()
194 buffer_reset(&r->physical.rel_path); in request_reset_ex()
222 free(r->physical.doc_root.ptr); in request_free_data()
223 free(r->physical.path.ptr); in request_free_data()
224 free(r->physical.basedir.ptr); in request_free_data()
225 free(r->physical.rel_path.ptr); in request_free_data()
H A Dmod_ssi.c946 … ? 0 == memcmp(r->physical.path.ptr+plen-remain, r->physical.rel_path.ptr+i, remain) in process_ssi_stmt()
947 … : buffer_eq_icase_ssn(r->physical.path.ptr+plen-remain, r->physical.rel_path.ptr+i, remain))) { in process_ssi_stmt()
1022 ppsave = r->physical.path; in process_ssi_stmt()
1023 prpsave = r->physical.rel_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()
1042 r->physical.rel_path = prpsave; in process_ssi_stmt()
1045 *p->stat_fn = r->physical.path; in process_ssi_stmt()
1046 r->physical.path = ppsave; in process_ssi_stmt()
1539 "read(): %s", r->physical.path.ptr); in mod_ssi_read_fd()
[all …]
H A Dmod_userdir.c255 buffer_copy_buffer(&r->physical.basedir, b); 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()
273 if (NULL != (rel_url = strchr(r->physical.rel_path.ptr + 2, '/'))) { in mod_userdir_docroot_construct()
274 buffer_append_string(&r->physical.path, rel_url + 1); /* skip the / */ in mod_userdir_docroot_construct()
H A Dmod_staticfile.c118 && 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 Drequest.h97 } physical; typedef
153 physical physical; member
H A Dhttp_cgi.c181 : &r->physical.basedir; 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()
221 BUF_PTR_LEN(&r->physical.basedir)); in http_cgi_headers()
H A Dmod_dirlisting.c591 len = buffer_clen(&r->physical.path); in http_list_directory_include_file()
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()
598 buffer_truncate(&r->physical.path, len); in http_list_directory_include_file()
988 const uint32_t dlen = buffer_clen(&r->physical.path); in http_open_directory()
999 memcpy(hctx->path, r->physical.path.ptr, dlen+1); in http_open_directory()
1334 if (!stat_cache_path_isdir(&r->physical.path)) { in URIHANDLER_FUNC()
1337 log_perror(r->conf.errh,__FILE__,__LINE__,"%s",r->physical.path.ptr); in URIHANDLER_FUNC()
1471 BUF_PTR_LEN(&r->physical.path)); in mod_dirlisting_cache_check()
1583 BUF_PTR_LEN(&r->physical.path)); in mod_dirlisting_cache_add()
[all …]
H A Dmod_cgi.c902 args[i++] = r->physical.path.ptr; in cgi_create_env()
906 int dfd = fdevent_open_dirname(r->physical.path.ptr,r->conf.follow_symlink); in cgi_create_env()
908 log_perror(r->conf.errh, __FILE__, __LINE__, "open dirname %s failed", r->physical.path.ptr); in cgi_create_env()
994 ds = (data_string *)array_match_key_suffix(p->conf.cgi, &r->physical.path); in URIHANDLER_FUNC()
1000 st = r->tmp_sce && buffer_is_equal(&r->tmp_sce->name, &r->physical.path) in URIHANDLER_FUNC()
1002 : stat_cache_path_stat(&r->physical.path); in URIHANDLER_FUNC()
1167 msg, r->physical.path.ptr, (long long)hctx->cgi_pid->pid); in cgi_trigger_hctx_timeout()
H A Dhttp-header-glue.c293 if (r->physical.path.ptr) { /*(skip for mod_fastcgi authorizer)*/ in http_response_reset()
294 buffer_clear(&r->physical.doc_root); in http_response_reset()
295 buffer_clear(&r->physical.basedir); in http_response_reset()
296 buffer_reset(&r->physical.path); in http_response_reset()
297 buffer_reset(&r->physical.rel_path); in http_response_reset()
H A Dmod_rewrite.c313 buffer_reset(&r->physical.path); in process_rewrite_rules()
339 const stat_cache_st * const st = stat_cache_path_stat(&r->physical.path); in URIHANDLER_FUNC()
H A Dmod_simple_vhost.c192 buffer_copy_buffer(&r->physical.doc_root, b); in mod_simple_vhost_docroot()
H A Dgw_backend.c2267 buffer_copy_buffer(&r->physical.doc_root, host->docroot); in gw_authorizer_ok()
2268 buffer_copy_buffer(&r->physical.basedir, host->docroot); in gw_authorizer_ok()
2269 buffer_copy_path_len2(&r->physical.path, in gw_authorizer_ok()
2272 physpath = r->physical.path.ptr; in gw_authorizer_ok()
2293 if (physpath) r->physical.path.ptr = NULL; in gw_authorizer_ok()
2296 if (physpath) r->physical.path.ptr = physpath; in gw_authorizer_ok()
2470 buffer *fn = uri_path_handler ? &r->uri.path : &r->physical.path; in gw_check_extension()
H A Dmod_expire.c268 const stat_cache_st * const st = stat_cache_path_stat(&r->physical.path); in mod_expire_set_header()
/lighttpd1.4/doc/outdated/
H A Dmagnet.txt53 can run checks against lighty.env["physical.path"].
58 magnet.attract-physical-path-to = ( ... )
100 * lighty.env["physical.path"] = "/my-docroot/search.php"
101 * lighty.env["physical.rel-path"] = "/search.php"
102 * lighty.env["physical.doc-root"] = "/my-docroot"
112 -- 2. changing the physical-path
113 lighty.env["physical.path"] = ...
261 magnet.attract-physical-path-to = "random.lua"
265 dir = lighty.env["physical.path"]
318 attr = lfs.attributes(lighty.env["physical.path"])
[all …]
H A Dplugins.txt62 called if the physical path is set up and checked
66 called after the physical path is created and no other handler is
199 called after physical.path is set
221 called after physical.path is set
H A Daccesslog.txt73 %f physical filename

12