Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 68) sorted by relevance

123

/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dresponse.c583 buffer_reset(con->physical.path); in http_response_prepare()
588 if (con->uri.path->ptr[con->uri.path->used - 2] != '/') { 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()
638 con->uri.path, in http_response_prepare()
639 "->", con->physical.path); in http_response_prepare()
680 "->", con->physical.path); in http_response_prepare()
683 buffer_reset(con->physical.path); in http_response_prepare()
697 buffer_reset(con->physical.path); in http_response_prepare()
[all …]
H A Dmod_webdav.c99 p->uri.path = buffer_init(); in INIT_FUNC()
151 buffer_free(p->uri.path); in FREE_FUNC()
582 d.path = buffer_init(); in webdav_delete_dir()
598 buffer_copy_string_buffer(d.path, dst->path); in webdav_delete_dir()
655 buffer_free(d.path); in webdav_delete_dir()
759 buffer_copy_string_buffer(s.path, src->path); in webdav_copy_dir()
763 buffer_copy_string_buffer(d.path, dst->path); in webdav_copy_dir()
819 buffer_free(s.path); in webdav_copy_dir()
821 buffer_free(d.path); in webdav_copy_dir()
1413 buffer_copy_string_buffer(d.path, dst->path); in URIHANDLER_FUNC()
[all …]
H A Dmod_userdir.c22 buffer *path; member
64 buffer_free(s->path); in FREE_FUNC()
105 s->path = buffer_init(); in SETDEFAULTS_FUNC()
109 cv[0].destination = s->path; in SETDEFAULTS_FUNC()
131 PATCH(path); in mod_userdir_patch_connection()
150 PATCH(path); in mod_userdir_patch_connection()
175 if (con->uri.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
182 if (p->conf.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
186 if (con->uri.path->ptr[0] != '/' || in URIHANDLER_FUNC()
197 if (0 == rel_url - (con->uri.path->ptr + 2)) { in URIHANDLER_FUNC()
[all …]
H A Dmod_indexfile.c144 if (con->uri.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
145 if (con->uri.path->ptr[con->uri.path->used - 2] != '/') return HANDLER_GO_ON; in URIHANDLER_FUNC()
151 log_error_write(srv, __FILE__, __LINE__, "sb", "URI :", con->uri.path); 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()
183 con->uri.path, in URIHANDLER_FUNC()
184 "->", con->physical.path); in URIHANDLER_FUNC()
186 buffer_reset(con->physical.path); in URIHANDLER_FUNC()
194 buffer_append_string_buffer(con->uri.path, ds->value); in URIHANDLER_FUNC()
195 buffer_copy_string_buffer(con->physical.path, p->tmp_buf); in URIHANDLER_FUNC()
H A Dmod_dirlisting.c637 char *path, *path_file; in http_list_directory() local
674 path = malloc(dir->used + name_max); in http_list_directory()
675 assert(path); in http_list_directory()
676 strcpy(path, dir->ptr); in http_list_directory()
677 path_file = path + i; in http_list_directory()
679 if (NULL == (dp = opendir(path))) { in http_list_directory()
683 free(path); in http_list_directory()
755 if (stat(path, &st) != 0) in http_list_directory()
876 free(path); in http_list_directory()
916 if (con->uri.path->ptr[con->uri.path->used - 2] != '/') return HANDLER_GO_ON; 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()
367 if (con->uri.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
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()
415 "not a regular file:", con->uri.path, in URIHANDLER_FUNC()
416 "->", con->physical.path); in URIHANDLER_FUNC()
431 buffer_reset(con->physical.path); in URIHANDLER_FUNC()
440 "not a regular file:", con->uri.path, in URIHANDLER_FUNC()
[all …]
H A Dmod_ssi.c437 stat_cache_get_entry(srv, con, con->physical.path, &sce); in process_ssi_stmt()
493 buffer_copy_string_buffer(b, con->physical.path); in process_ssi_stmt()
501 buffer_copy_string_buffer(b, con->uri.path); 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()
576 sl = strrchr(con->uri.path->ptr, '/'); in process_ssi_stmt()
578 buffer_copy_string_len(p->stat_fn, con->uri.path->ptr, sl - con->uri.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()
1106 buffer_reset(con->physical.path); in mod_ssi_handle_request()
[all …]
H A Dmod_cml.c187 buffer_copy_string_buffer(b, con->uri.path); in cache_call_lua()
196 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 Dmod_compress.c435 buffer_append_string(p->ofn, con->physical.path->ptr + con->physical.doc_root->used - 1); in deflate_file_to_file()
438 buffer_append_string_buffer(p->ofn, con->uri.path); 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()
752 "not a regular file:", con->uri.path, in PHYSICALPATH_FUNC()
753 "->", con->physical.path); in PHYSICALPATH_FUNC()
792 log_error_write(srv, __FILE__, __LINE__, "sbb", "evil", con->physical.path, con->uri.path); in PHYSICALPATH_FUNC()
[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_access.c128 if (con->uri.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
132 s_len = con->uri.path->used - 1; in URIHANDLER_FUNC()
151 if (0 == strncasecmp(con->uri.path->ptr + s_len - ct_len, ds->value->ptr, ct_len)) { in URIHANDLER_FUNC()
155 if (0 == strncmp(con->uri.path->ptr + s_len - ct_len, ds->value->ptr, ct_len)) { in URIHANDLER_FUNC()
H A Dmod_secure_download.c201 if (con->uri.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
223 …if (0 != strncmp(con->uri.path->ptr, p->conf.uri_prefix->ptr, p->conf.uri_prefix->used - 1)) retur… in URIHANDLER_FUNC()
225 md5_str = con->uri.path->ptr + p->conf.uri_prefix->used - 1; 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_scgi.c282 buffer *path; member
541 p->path = buffer_init(); in INIT_FUNC()
554 buffer_free(p->path); in FREE_FUNC()
1590 buffer_append_string_buffer(p->path, con->uri.path); in scgi_create_env()
1595 buffer_copy_string_buffer(p->path, con->physical.path); in scgi_create_env()
2640 con->uri.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()
2842 con->uri.path->used = 1; in scgi_check_extension()
2843 con->uri.path->ptr[con->uri.path->used - 1] = '\0'; in scgi_check_extension()
[all …]
H A Dmod_alias.c154 if (con->physical.path->used == 0) return HANDLER_GO_ON; 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()
178 buffer_copy_string_buffer(con->physical.path, srv->tmp_buf); in PHYSICALPATH_FUNC()
H A Dmod_cml_lua.c255 c_to_lua_push(L, header_tbl, CONST_STR_LEN("SCRIPT_NAME"), CONST_BUF_LEN(con->uri.path)); in cache_parse_lua()
256 c_to_lua_push(L, header_tbl, CONST_STR_LEN("SCRIPT_FILENAME"), CONST_BUF_LEN(con->physical.path)); in cache_parse_lua()
437 buffer_copy_string_buffer(con->uri.path, p->baseurl); in cache_parse_lua()
438 buffer_append_string_buffer(con->uri.path, p->trigger_handler); 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_fastcgi.c320 buffer *path; member
681 p->path = buffer_init(); in INIT_FUNC()
696 buffer_free(p->path); in FREE_FUNC()
1972 buffer_append_string_buffer(p->path, con->uri.path); in fcgi_create_env()
1977 buffer_copy_string_buffer(p->path, con->physical.path); in fcgi_create_env()
3254 buffer_append_string_buffer(con->physical.path, con->uri.path); in fcgi_handle_fdevent()
3470 fn = uri_path_handler ? con->uri.path : con->physical.path; in fcgi_check_extension()
3563 buffer_reset(con->physical.path); in fcgi_check_extension()
3645 con->uri.path->used = 1; in fcgi_check_extension()
3646 con->uri.path->ptr[con->uri.path->used - 1] = '\0'; in fcgi_check_extension()
[all …]
H A Dconnections.c86 buffer_reset(con->uri.path); in connection_del()
455 con->uri.path->ptr[0] != '*') {
506 buffer_reset(con->physical.path);
527 buffer_reset(con->physical.path);
701 CLEAN(uri.path);
706 CLEAN(physical.path);
768 CLEAN(uri.path);
773 CLEAN(physical.path);
846 CLEAN(physical.path);
1449 buffer_reset(con->uri.path);
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/doc/outdated/
H A Dmagnet.txt58 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 Duserdir.txt27 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 Daccess.txt14 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 Dplugins.txt58 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 Dfastcgi.txt124 :"bin-path": path to the local FastCGI binary which should be
126 :"socket": path to the unix-domain socket
150 If bin-path is set:
169 "bin-path" => "/usr/local/bin/php"
291 "bin-path" => "/usr/local/bin/php",
377 "bin-path" => "/usr/local/bin/php"
388 "bin-path" => "/usr/local/bin/php",
401 "bin-path" => "/usr/local/bin/php",
422 "bin-path" => "/usr/local/bin/php",
464 ## ABSOLUTE path to the spawn-fcgi binary
[all …]
H A Dsimple-vhost.txt26 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
H A Devhost.txt38 evhost.path-pattern = "/home/www/servers/%3/pages/"
43 evhost.path-pattern
/mOS-networking-stack/samples/lighttpd-1.4.32/tests/docroot/www/
H A Dsendfile.php3 function pathencode($path) { argument
4 return str_replace(',', '%2c', urlencode($path));

123