Home
last modified time | relevance | path

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

12

/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dresponse.c512 buffer_copy_string_buffer(con->physical.path, con->physical.doc_root); in http_response_prepare()
514 buffer_copy_string_buffer(con->physical.basedir, con->physical.path); in http_response_prepare()
515 if (con->physical.rel_path->used && in http_response_prepare()
517 …buffer_append_string_len(con->physical.path, con->physical.rel_path->ptr + 1, con->physical.rel_pa… in http_response_prepare()
519 buffer_append_string_buffer(con->physical.path, con->physical.rel_path); in http_response_prepare()
583 buffer_reset(con->physical.path); in http_response_prepare()
614 buffer_reset(con->physical.path); in http_response_prepare()
626 buffer_reset(con->physical.path); in http_response_prepare()
634 buffer_reset(con->physical.path); in http_response_prepare()
639 "->", con->physical.path); in http_response_prepare()
[all …]
H A Dmod_webdav.c82 physical physical; member
580 physical d; in webdav_delete_dir()
743 physical s, d; in webdav_copy_dir()
1401 physical d; in URIHANDLER_FUNC()
1402 physical *dst = &(con->physical); in URIHANDLER_FUNC()
1870 buffer_copy_string_buffer(p->physical.doc_root, con->physical.doc_root); in URIHANDLER_FUNC()
1877 buffer_copy_string_buffer(p->physical.path, p->physical.doc_root); in URIHANDLER_FUNC()
1879 buffer_copy_string_buffer(p->physical.basedir, p->physical.path); in URIHANDLER_FUNC()
1883 …buffer_append_string_len(p->physical.path, p->physical.rel_path->ptr + 1, p->physical.rel_path->us… in URIHANDLER_FUNC()
1885 buffer_append_string_buffer(p->physical.path, p->physical.rel_path); in URIHANDLER_FUNC()
[all …]
H A Dmod_staticfile.c164 if (HANDLER_ERROR == stat_cache_get_entry(srv, con, con->physical.path, &sce)) { in http_response_parse_range()
313 chunkqueue_append_file(con->write_queue, con->physical.path, start, end - start + 1); in http_response_parse_range()
368 if (con->physical.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
398 if (buffer_is_equal_right_len(con->physical.path, ds->value, ds->value->used - 1)) { in URIHANDLER_FUNC()
411 if (HANDLER_ERROR == stat_cache_get_entry(srv, con, con->physical.path, &sce)) { in URIHANDLER_FUNC()
416 "->", con->physical.path); in URIHANDLER_FUNC()
431 buffer_reset(con->physical.path); in URIHANDLER_FUNC()
475 etag_mutate(con->physical.etag, sce->etag); in URIHANDLER_FUNC()
506 if (!con->physical.etag) { in URIHANDLER_FUNC()
508 } else if (!buffer_is_equal(ds->value, con->physical.etag)) { in URIHANDLER_FUNC()
[all …]
H A Dmod_compress.c434 …if (0 == strncmp(con->physical.path->ptr, con->physical.doc_root->ptr, con->physical.doc_root->use… in deflate_file_to_file()
435 buffer_append_string(p->ofn, con->physical.path->ptr + con->physical.doc_root->used - 1); in deflate_file_to_file()
471 buffer_copy_string_buffer(con->physical.path, p->ofn); in deflate_file_to_file()
578 buffer_copy_string_buffer(con->physical.path, p->ofn); in deflate_file_to_file()
658 buffer_reset(con->physical.path); in deflate_file_to_buffer()
736 if (buffer_is_empty(con->physical.path)) { in PHYSICALPATH_FUNC()
748 if (HANDLER_ERROR == stat_cache_get_entry(srv, con, con->physical.path, &sce)) { in PHYSICALPATH_FUNC()
753 "->", con->physical.path); in PHYSICALPATH_FUNC()
841 etag_mutate(con->physical.etag, sce->etag); in PHYSICALPATH_FUNC()
873 etag_mutate(con->physical.etag, srv->tmp_buf); in PHYSICALPATH_FUNC()
[all …]
H A Dmod_indexfile.c161 buffer_copy_string_buffer(p->tmp_buf, con->physical.doc_root); in URIHANDLER_FUNC()
163 buffer_copy_string_buffer(p->tmp_buf, con->physical.path); in URIHANDLER_FUNC()
170 buffer_reset(con->physical.path); in URIHANDLER_FUNC()
184 "->", con->physical.path); in URIHANDLER_FUNC()
186 buffer_reset(con->physical.path); in URIHANDLER_FUNC()
195 buffer_copy_string_buffer(con->physical.path, p->tmp_buf); in URIHANDLER_FUNC()
H A Dmod_alias.c154 if (con->physical.path->used == 0) return HANDLER_GO_ON; in PHYSICALPATH_FUNC()
159 basedir_len = (con->physical.basedir->used - 1) - 1; in PHYSICALPATH_FUNC()
160 uri_len = con->physical.path->used - 1 - basedir_len; in PHYSICALPATH_FUNC()
161 uri_ptr = con->physical.path->ptr + basedir_len; in PHYSICALPATH_FUNC()
175 buffer_copy_string_buffer(con->physical.basedir, ds->value); in PHYSICALPATH_FUNC()
178 buffer_copy_string_buffer(con->physical.path, srv->tmp_buf); in PHYSICALPATH_FUNC()
H A Dmod_ssi.c437 stat_cache_get_entry(srv, con, con->physical.path, &sce); in process_ssi_stmt()
492 if (NULL == (sl = strrchr(con->physical.path->ptr, '/'))) { in process_ssi_stmt()
493 buffer_copy_string_buffer(b, con->physical.path); in process_ssi_stmt()
559 if (NULL == (sl = strrchr(con->physical.path->ptr, '/'))) { in process_ssi_stmt()
562 buffer_copy_string_len(p->stat_fn, con->physical.path->ptr, sl - con->physical.path->ptr + 1); in process_ssi_stmt()
978 if (-1 == stream_open(&s, con->physical.path)) { in mod_ssi_handle_request()
980 "stream-open: ", con->physical.path); in mod_ssi_handle_request()
1088 stat_cache_get_entry(srv, con, con->physical.path, &sce); in mod_ssi_handle_request()
1090 etag_mutate(con->physical.etag, sce->etag); in mod_ssi_handle_request()
1106 buffer_reset(con->physical.path); in mod_ssi_handle_request()
[all …]
H A Dmod_secure_download.c278 buffer_copy_string_buffer(con->physical.doc_root, p->conf.doc_root); in URIHANDLER_FUNC()
279 buffer_copy_string(con->physical.rel_path, rel_uri); in URIHANDLER_FUNC()
280 buffer_copy_string_buffer(con->physical.path, con->physical.doc_root); in URIHANDLER_FUNC()
281 buffer_append_string_buffer(con->physical.path, con->physical.rel_path); in URIHANDLER_FUNC()
H A Dmod_cml.c196 buffer_copy_string_buffer(b, con->physical.path); in cache_call_lua()
253 buffer_reset(con->physical.path); in URIHANDLER_FUNC()
267 if (buffer_is_empty(con->physical.path)) return HANDLER_ERROR; in URIHANDLER_FUNC()
277 if (!buffer_is_equal_right_len(con->physical.path, p->conf.ext, p->conf.ext->used - 1)) { in URIHANDLER_FUNC()
281 switch(cache_call_lua(srv, con, p, con->physical.path)) { in URIHANDLER_FUNC()
294 buffer_reset(con->physical.path); in URIHANDLER_FUNC()
H A Dconnections.c705 CLEAN(physical.doc_root);
706 CLEAN(physical.path);
707 CLEAN(physical.basedir);
708 CLEAN(physical.rel_path);
709 CLEAN(physical.etag);
773 CLEAN(physical.path);
774 CLEAN(physical.basedir);
775 CLEAN(physical.etag);
846 CLEAN(physical.path);
847 CLEAN(physical.basedir);
[all …]
H A Dmod_flv_streaming.c194 if (buffer_is_empty(con->physical.path)) return HANDLER_GO_ON; in URIHANDLER_FUNC()
198 s_len = con->physical.path->used - 1; in URIHANDLER_FUNC()
207 if (0 == strncmp(con->physical.path->ptr + s_len - ct_len, ds->value->ptr, ct_len)) { in URIHANDLER_FUNC()
236 if (HANDLER_GO_ON != stat_cache_get_entry(srv, con, con->physical.path, &sce)) { in URIHANDLER_FUNC()
248 http_chunk_append_file(srv, con, con->physical.path, start, sce->st.st_size - start); in URIHANDLER_FUNC()
H A Dmod_cml_lua.c256 c_to_lua_push(L, header_tbl, CONST_STR_LEN("SCRIPT_FILENAME"), CONST_BUF_LEN(con->physical.path)); in cache_parse_lua()
257 …c_to_lua_push(L, header_tbl, CONST_STR_LEN("DOCUMENT_ROOT"), CONST_BUF_LEN(con->physical.doc_root)… in cache_parse_lua()
440 buffer_copy_string_buffer(con->physical.path, p->basedir); in cache_parse_lua()
441 buffer_append_string_buffer(con->physical.path, p->trigger_handler); in cache_parse_lua()
H A Dmod_simple_vhost.c235 buffer_copy_string_buffer(con->physical.doc_root, p->conf.docroot_cache_value); in mod_simple_vhost_docroot()
248 buffer_copy_string_buffer(con->physical.doc_root, p->doc_root); in mod_simple_vhost_docroot()
262 buffer_copy_string_buffer(con->physical.doc_root, p->doc_root); in mod_simple_vhost_docroot()
H A Dmod_cgi.c935 cgi_env_add(&env, CONST_STR_LEN("SCRIPT_FILENAME"), CONST_BUF_LEN(con->physical.path)); in cgi_create_env()
937 cgi_env_add(&env, CONST_STR_LEN("DOCUMENT_ROOT"), CONST_BUF_LEN(con->physical.basedir)); in cgi_create_env()
1032 args[i++] = con->physical.path->ptr; in cgi_create_env()
1036 if (NULL != (c = strrchr(con->physical.path->ptr, '/'))) { in cgi_create_env()
1040 if (-1 == chdir(con->physical.path->ptr)) { in cgi_create_env()
1041 …log_error_write(srv, __FILE__, __LINE__, "ssb", "chdir failed:", strerror(errno), con->physical.pa… in cgi_create_env()
1164 buffer_reset(con->physical.path); in cgi_create_env()
1242 buffer *fn = con->physical.path; in URIHANDLER_FUNC()
1251 …if (HANDLER_ERROR == stat_cache_get_entry(srv, con, con->physical.path, &sce)) return HANDLER_GO_O… in URIHANDLER_FUNC()
1269 buffer_reset(con->physical.path); in URIHANDLER_FUNC()
H A Dmod_dirlisting.c542 buffer_copy_string_buffer(p->tmp_buf, con->physical.path); in http_list_directory_header()
595 buffer_copy_string_buffer(p->tmp_buf, con->physical.path); in http_list_directory_footer()
914 if (con->physical.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
927 if (HANDLER_ERROR == stat_cache_get_entry(srv, con, con->physical.path, &sce)) { in URIHANDLER_FUNC()
928 …log_error_write(srv, __FILE__, __LINE__, "SB", "stat_cache_get_entry failed: ", con->physical.pat… in URIHANDLER_FUNC()
934 if (http_list_directory(srv, con, p, con->physical.path)) { in URIHANDLER_FUNC()
939 buffer_reset(con->physical.path); in URIHANDLER_FUNC()
H A Dbase.h215 } physical; typedef
415 physical physical; member
H A Dmod_userdir.c302 if (NULL != (rel_url = strchr(con->physical.rel_path->ptr + 2, '/'))) { in URIHANDLER_FUNC()
305 buffer_copy_string_buffer(con->physical.path, p->temp_path); in URIHANDLER_FUNC()
H A Dmod_mysql_vhost.c420 buffer_copy_string_buffer(con->physical.doc_root, c->document_root);
425 con->server_name, con->physical.doc_root,
H A Dmod_fastcgi.c1948 buffer_copy_string_buffer(p->path, con->physical.basedir); in fcgi_create_env()
1977 buffer_copy_string_buffer(p->path, con->physical.path); in fcgi_create_env()
3195 buffer_reset(con->physical.path); in SUBREQUEST_FUNC()
3205 buffer_reset(con->physical.path); in SUBREQUEST_FUNC()
3250 buffer_copy_string_buffer(con->physical.doc_root, host->docroot); in fcgi_handle_fdevent()
3251 buffer_copy_string_buffer(con->physical.basedir, host->docroot); in fcgi_handle_fdevent()
3253 buffer_copy_string_buffer(con->physical.path, host->docroot); in fcgi_handle_fdevent()
3254 buffer_append_string_buffer(con->physical.path, con->uri.path); in fcgi_handle_fdevent()
3337 buffer_reset(con->physical.path); in fcgi_handle_fdevent()
3470 fn = uri_path_handler ? con->uri.path : con->physical.path; in fcgi_check_extension()
[all …]
H A Dmod_rewrite.c463 if (HANDLER_ERROR != stat_cache_get_entry(srv, con, con->physical.path, &sce)) { in URIHANDLER_FUNC()
469 buffer_reset(con->physical.path); in URIHANDLER_FUNC()
H A Dmod_scgi.c1567 buffer_copy_string_buffer(p->path, con->physical.basedir); in scgi_create_env()
1595 buffer_copy_string_buffer(p->path, con->physical.path); in scgi_create_env()
1598 scgi_env_add(p->scgi_env, CONST_STR_LEN("DOCUMENT_ROOT"), CONST_BUF_LEN(con->physical.basedir)); in scgi_create_env()
2439 buffer_reset(con->physical.path); in SUBREQUEST_FUNC()
2451 buffer_reset(con->physical.path); in SUBREQUEST_FUNC()
2578 buffer_reset(con->physical.path); in scgi_handle_fdevent()
2713 fn = uri_path_handler ? con->uri.path : con->physical.path; in scgi_check_extension()
2768 buffer_reset(con->physical.path); in scgi_check_extension()
H A Dmod_magnet.c497 case MAGNET_ENV_PHYICAL_PATH: dest = con->physical.path; break; in magnet_env_get_buffer_by_id()
498 case MAGNET_ENV_PHYICAL_REL_PATH: dest = con->physical.rel_path; break; in magnet_env_get_buffer_by_id()
499 case MAGNET_ENV_PHYICAL_DOC_ROOT: dest = con->physical.doc_root; break; in magnet_env_get_buffer_by_id()
H A Dmod_expire.c309 stat_cache_get_entry(srv, con, con->physical.path, &sce); in URIHANDLER_FUNC()
/mOS-networking-stack/samples/lighttpd-1.4.32/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

12