Home
last modified time | relevance | path

Searched refs:conf (Results 1 – 25 of 84) sorted by relevance

1234

/lighttpd1.4/doc/config/conf.d/
H A DMakefile.am2 auth.conf \
3 cgi.conf \
4 debug.conf \
5 deflate.conf \
7 evhost.conf \
8 expire.conf \
11 mime.conf \
13 proxy.conf \
15 scgi.conf \
17 ssi.conf \
[all …]
/lighttpd1.4/src/
H A Dresponse.c178 if (r->conf.log_response_header) { in http_response_write_header()
201 || r->conf.log_request_handling) { in http_response_physical_path_error()
283 if (r->conf.force_lowercase_filenames in http_response_physical_path_check()
304 if (!r->conf.follow_symlink in http_response_physical_path_check()
362 r->server_name = r->conf.server_name in http_response_config()
363 ? r->conf.server_name in http_response_config()
419 if (r->conf.log_request_handling) { in http_response_prepare()
508 if (r->conf.log_request_handling) { in http_response_prepare()
535 if (r->conf.log_request_handling) { in http_response_prepare()
651 if (r->conf.errorfile_prefix) { in http_response_static_errdoc()
[all …]
H A Dmod_cgi.c64 plugin_config conf; member
89 plugin_config conf; member
545 if (hctx->conf.upgrade in cgi_response_headers()
840 if (hctx->conf.upgrade) { in cgi_create_env()
848 if (hctx->conf.upgrade) in cgi_create_env()
911 int serrh_fd = r->conf.serrh ? r->conf.serrh->fd : -1; in cgi_create_env()
1030 memcpy(&hctx->conf, &p->conf, sizeof(plugin_config)); in URIHANDLER_FUNC()
1034 hctx->conf.upgrade = 0; in URIHANDLER_FUNC()
1036 hctx->conf.upgrade = 0; in URIHANDLER_FUNC()
1040 if (hctx->conf.upgrade) { in URIHANDLER_FUNC()
[all …]
H A Dmod_dirlisting.c100 plugin_config conf; member
132 plugin_config conf; member
141 memcpy(&hctx->conf, &p->conf, sizeof(plugin_config)); in mod_dirlisting_handler_ctx_init()
854 if (p->conf.encoding) { in http_list_directory_header()
960 p->conf.set_footer in http_list_directory_footer()
961 ? p->conf.set_footer in http_list_directory_footer()
1062 if (p->conf.excludes in http_read_directory()
1350 if (p->conf.cache) { in URIHANDLER_FUNC()
1391 if (p->conf.json) { in URIHANDLER_FUNC()
1395 if (p->conf.cache) in URIHANDLER_FUNC()
[all …]
H A Dconnections.c102 log_perror(r->conf.errh, __FILE__, __LINE__, in connection_close()
105 if (r->conf.log_state_handling) { in connection_close()
106 log_error(r->conf.errh, __FILE__, __LINE__, in connection_close()
169 if (r->conf.log_state_handling) { in connection_handle_shutdown()
769 if (r->conf.log_request_header) in connection_handle_read_state()
969 if (r->conf.log_state_handling) in connection_state_machine_loop()
977 if (r->conf.high_precision_timestamps) in connection_state_machine_loop()
1068 r->conf.stream_request_body &= in connection_revents_err()
1343 if (r->conf.log_state_handling) in connection_state_machine_h1()
1491 if (r->conf.log_timeouts) { in connection_check_timeout()
[all …]
H A Dmod_access.c18 plugin_config conf; member
45 p->conf = p->defaults; /* copy small struct instead of memcpy() */ in mod_access_patch_config()
49 mod_access_merge_config(&p->conf, p->cvlist + p->cvlist[i].v.u2[0]); in mod_access_patch_config()
82 if (r->conf.log_request_handling) { in mod_access_reject()
83 if (p->conf.access_allow && p->conf.access_allow->used) in mod_access_reject()
84 log_error(r->conf.errh, __FILE__, __LINE__, in mod_access_reject()
88 log_error(r->conf.errh, __FILE__, __LINE__, in mod_access_reject()
128 if (NULL == p->conf.access_allow && NULL == p->conf.access_deny) in URIHANDLER_FUNC()
131 return mod_access_check(p->conf.access_allow, p->conf.access_deny, in URIHANDLER_FUNC()
132 &r->uri.path, r->conf.force_lowercase_filenames) in URIHANDLER_FUNC()
H A Dmod_authn_gssapi.c48 plugin_config conf; member
97 mod_authn_gssapi_merge_config(&p->conf, in mod_authn_gssapi_patch_config()
342 if (p->conf.auth_gssapi_keytab) { in mod_authn_gssapi_check_spnego()
356 if (p->conf.auth_gssapi_principal) in mod_authn_gssapi_check_spnego()
357 buffer_copy_buffer(sprinc, p->conf.auth_gssapi_principal); in mod_authn_gssapi_check_spnego()
419 if (p->conf.auth_gssapi_store_creds) { in mod_authn_gssapi_check_spnego()
652 if (!p->conf.auth_gssapi_keytab) { in mod_authn_gssapi_basic()
659 …log_error(r->conf.errh, __FILE__, __LINE__, "krb5_kt_resolve(): %d %s", code, p->conf.auth_gssapi_… in mod_authn_gssapi_basic()
664 if (p->conf.auth_gssapi_principal) in mod_authn_gssapi_basic()
728 if (!p->conf.auth_gssapi_store_creds) goto end; in mod_authn_gssapi_basic()
[all …]
H A Dmod_userdir.c33 plugin_config conf; member
83 memcpy(&p->conf, &p->defaults, sizeof(plugin_config)); in mod_userdir_patch_config()
184 if (!p->conf.basepath) { in mod_userdir_docroot_construct()
240 if (r->conf.force_lowercase_filenames) { in mod_userdir_docroot_construct()
246 buffer_copy_buffer(b, p->conf.basepath); in mod_userdir_docroot_construct()
247 if (p->conf.letterhomes) { in mod_userdir_docroot_construct()
252 buffer_append_path_len(b, BUF_PTR_LEN(p->conf.path)); in mod_userdir_docroot_construct()
296 if (!p->conf.active || !p->conf.path) return HANDLER_GO_ON; in URIHANDLER_FUNC()
315 if (p->conf.exclude_user) { in URIHANDLER_FUNC()
318 if (!r->conf.force_lowercase_filenames in URIHANDLER_FUNC()
[all …]
H A Dhttp-header-glue.c326 log_error(r->conf.errh, __FILE__, __LINE__, in http_response_send_file()
332 if (r->conf.log_request_handling) { in http_response_send_file()
343 if (r->conf.log_request_handling) { in http_response_send_file()
344 log_error(r->conf.errh, __FILE__, __LINE__, in http_response_send_file()
346 log_error(r->conf.errh, __FILE__, __LINE__, in http_response_send_file()
355 if (r->conf.log_file_not_found) { in http_response_send_file()
384 && 0 != r->conf.etag_flags) { in http_response_send_file()
440 log_error(r->conf.errh, __FILE__, __LINE__, in http_response_xsendfile()
449 if (r->conf.force_lowercase_filenames) { in http_response_xsendfile()
692 r->conf.stream_request_body |= in http_response_upgrade_read_body_unknown()
[all …]
H A Dmod_gnutls.c153 plugin_config conf; member
790 ? hctx->conf.ssl_ca_dn_file in mod_gnutls_verify_set_tlist()
791 : hctx->conf.ssl_ca_file; in mod_gnutls_verify_set_tlist()
817 d = hctx->conf.ssl_ca_crl_file; in mod_gnutls_verify_set_tlist()
1565 if (!hctx->r->conf.h2proto) { in mod_gnutls_client_hello_hook()
1624 if (hctx->conf.dh_params) in mod_gnutls_client_hello_hook()
1919 plugin_config_socket conf; in mod_gnutls_set_defaults_sockets() local
1920 memcpy(&conf, &defaults, sizeof(conf)); in mod_gnutls_set_defaults_sockets()
1964 if (0 == i) memcpy(&defaults, &conf, sizeof(conf)); in mod_gnutls_set_defaults_sockets()
2004 if (NULL == conf.pc) { in mod_gnutls_set_defaults_sockets()
[all …]
H A Dmod_indexfile.c21 plugin_config conf; member
46 p->conf = p->defaults; /* copy small struct instead of memcpy() */ in mod_indexfile_patch_config()
50 mod_indexfile_merge_config(&p->conf,p->cvlist+p->cvlist[i].v.u2[0]); in mod_indexfile_patch_config()
110 log_perror(r->conf.errh, __FILE__, __LINE__, in __attribute_nonnull__()
148 if (NULL == p->conf.indexfiles) return HANDLER_GO_ON; in URIHANDLER_FUNC()
150 if (r->conf.log_request_handling) { in URIHANDLER_FUNC()
151 log_error(r->conf.errh, __FILE__, __LINE__, in URIHANDLER_FUNC()
153 log_error(r->conf.errh, __FILE__, __LINE__, in URIHANDLER_FUNC()
157 return mod_indexfile_tryfiles(r, p->conf.indexfiles); in URIHANDLER_FUNC()
H A Dmod_mbedtls.c200 plugin_config conf; member
813 if (hctx->conf.ssl_ca_dn_file) in mod_mbedtls_conf_verify()
1084 if (!hctx->conf.ssl_acme_tls_1) in mod_mbedtls_acme_tls_1()
1303 if (hctx->conf.ssl_verifyclient in mod_mbedtls_cert_cb()
1606 plugin_config_socket conf; in mod_mbedtls_set_defaults_sockets() local
1607 memcpy(&conf, &defaults, sizeof(conf)); in mod_mbedtls_set_defaults_sockets()
1657 if (0 == i) memcpy(&defaults, &conf, sizeof(conf)); in mod_mbedtls_set_defaults_sockets()
1761 free(conf.ciphersuites); in mod_mbedtls_set_defaults_sockets()
1762 free(conf.curves); in mod_mbedtls_set_defaults_sockets()
2001 if (hctx->conf.ssl_log_noise) in mod_mbedtls_ssl_write_err()
[all …]
H A Dmod_deflate.c210 plugin_config conf; member
893 : p->conf.compression_level; in stream_deflate_init()
956 if (p->conf.sync_flush) { in stream_deflate_flush()
1014 : p->conf.compression_level; in stream_bzip2_init()
1018 ? p->conf.compression_level in stream_bzip2_init()
1456 : p->conf.compression_level; in mod_deflate_using_libdeflate_sm()
1705 if (p->conf.sync_flush && max > (len = p->conf.work_block_size << 10)) { in deflate_compress_response()
1985 if (0.0 < p->conf.max_loadavg && p->conf.max_loadavg < r->con->srv->loadavg[0]) { in REQUEST_FUNC()
2028 if (p->conf.cache_dir in REQUEST_FUNC()
2067 p->conf.sync_flush = in REQUEST_FUNC()
[all …]
H A Dmod_authn_ldap.c47 plugin_config conf; member
144 mod_authn_ldap_merge_config(&p->conf, in mod_authn_ldap_patch_config()
726 log_error_st * const errh = r->conf.errh; in mod_authn_ldap_basic()
752 dn = mod_authn_ldap_get_dn(errh, p->conf.ldc, in mod_authn_ldap_basic()
762 plugin_config_ldap * const ldc_base = p->conf.ldc; in mod_authn_ldap_basic()
765 if ( p->conf.ldc->auth_ldap_starttls != p->conf.auth_ldap_starttls in mod_authn_ldap_basic()
766 || p->conf.ldc->auth_ldap_binddn != p->conf.auth_ldap_binddn in mod_authn_ldap_basic()
767 || p->conf.ldc->auth_ldap_bindpw != p->conf.auth_ldap_bindpw in mod_authn_ldap_basic()
768 || p->conf.ldc->auth_ldap_cafile != p->conf.auth_ldap_cafile ) { in mod_authn_ldap_basic()
777 p->conf.ldc = &ldc_custom; in mod_authn_ldap_basic()
[all …]
H A Dmod_openssl.c180 plugin_config conf; member
1065 plugin_cert *pc = hctx->conf.pc; in mod_openssl_cert_cb()
1144 if (hctx->conf.ssl_verifyclient) { in mod_openssl_cert_cb()
1161 ? hctx->conf.ssl_ca_dn_file in mod_openssl_cert_cb()
1773 if (!hctx->conf.ssl_acme_tls_1) in mod_openssl_acme_tls_1()
2526 plugin_config_socket conf; in mod_openssl_set_defaults_sockets() local
2527 memcpy(&conf, &defaults, sizeof(conf)); in mod_openssl_set_defaults_sockets()
2571 if (0 == i) memcpy(&defaults, &conf, sizeof(conf)); in mod_openssl_set_defaults_sockets()
2637 if (NULL == conf.pc) { in mod_openssl_set_defaults_sockets()
2670 s->ssl_ctx = conf.ssl_ctx; in mod_openssl_set_defaults_sockets()
[all …]
H A Dgw_backend.c748 if (NULL == conf || NULL == conf->exts) continue; in unixsocket_is_dup()
750 gw_exts *exts = conf->exts; in unixsocket_is_dup()
1837 hctx->host = gw_host_get(r,hctx->ext,hctx->conf.balance,hctx->conf.debug); in gw_reconnect()
2510 if (p->conf.ext_mapping) { in gw_check_extension()
2568 host = gw_host_get(r, extension, p->conf.balance, p->conf.debug); in gw_check_extension()
2652 hctx->conf.balance = p->conf.balance; in gw_check_extension()
2653 hctx->conf.proto = p->conf.proto; in gw_check_extension()
2654 hctx->conf.debug = p->conf.debug; in gw_check_extension()
2872 if (NULL == conf || NULL == conf->exts) continue; in gw_handle_trigger()
2912 if (NULL == conf || NULL == conf->exts) continue; in gw_handle_waitpid_cb()
[all …]
H A Dmod_nss.c196 plugin_config conf; member
1232 if (!hctx->conf.ssl_acme_tls_1) in mod_nss_acme_tls_1()
1273 if (hctx->conf.pc) { in mod_nss_acme_tls_1()
1435 plugin_cert *pc = hctx->conf.pc; in mod_nss_SNI()
1456 if (pc == hctx->conf.pc) in mod_nss_SNI()
1764 plugin_config_socket conf; in mod_nss_set_defaults_sockets() local
1765 memcpy(&conf, &defaults, sizeof(conf)); in mod_nss_set_defaults_sockets()
1809 if (0 == i) memcpy(&defaults, &conf, sizeof(conf)); in mod_nss_set_defaults_sockets()
1849 if (NULL == conf.pc) { in mod_nss_set_defaults_sockets()
1895 if (conf.model) PR_Close(conf.model); in mod_nss_set_defaults_sockets()
[all …]
H A Dmod_redirect.c23 plugin_config conf; member
70 p->conf = p->defaults; /* copy small struct instead of memcpy() */ in mod_redirect_patch_config()
74 mod_redirect_merge_config(&p->conf, p->cvlist+p->cvlist[i].v.u2[0]); in mod_redirect_patch_config()
168 if (!p->conf.redirect || !p->conf.redirect->used) return HANDLER_GO_ON; in URIHANDLER_FUNC()
171 if (p->conf.redirect->x0) { /*(p->conf.redirect->x0 is capture_idx)*/ in URIHANDLER_FUNC()
172 ctx.cache = r->cond_match[p->conf.redirect->x0 - 1]; in URIHANDLER_FUNC()
187 rc = pcre_keyvalue_buffer_process(p->conf.redirect, &ctx, in URIHANDLER_FUNC()
193 r->http_status = p->conf.redirect_code; in URIHANDLER_FUNC()
198 log_error(r->conf.errh, __FILE__, __LINE__, in URIHANDLER_FUNC()
H A Dmod_simple_vhost.c23 plugin_config conf; member
63 p->conf = p->defaults; /* copy small struct instead of memcpy() */ in mod_simple_vhost_patch_config()
67 mod_simple_vhost_merge_config(&p->conf, in mod_simple_vhost_patch_config()
157 build_doc_root_path(out, p->conf.server_root, host, p->conf.document_root); in build_doc_root()
163 if (p->conf.debug) { in build_doc_root()
164 log_perror(r->conf.errh, __FILE__, __LINE__, "%s", out->ptr); in build_doc_root()
176 if (!p->conf.server_root) return HANDLER_GO_ON; in mod_simple_vhost_docroot()
187 || build_doc_root(r, p, b, (host = p->conf.default_host))) { in mod_simple_vhost_docroot()
H A Dmod_wolfssl.c201 plugin_config conf; member
1240 plugin_cert *pc = hctx->conf.pc; in mod_openssl_cert_cb()
1274 if (hctx->conf.ssl_verifyclient) { in mod_openssl_cert_cb()
1717 if (!hctx->conf.ssl_acme_tls_1) in mod_openssl_acme_tls_1()
2308 plugin_config_socket conf; in mod_openssl_set_defaults_sockets() local
2309 memcpy(&conf, &defaults, sizeof(conf)); in mod_openssl_set_defaults_sockets()
2353 if (0 == i) memcpy(&defaults, &conf, sizeof(conf)); in mod_openssl_set_defaults_sockets()
2420 if (NULL == conf.pc) { in mod_openssl_set_defaults_sockets()
2453 s->ssl_ctx = conf.ssl_ctx; in mod_openssl_set_defaults_sockets()
3004 hctx->errh = r->conf.errh; in CONNECTION_FUNC()
[all …]
H A Dmod_ssi.c51 plugin_config conf; member
70 plugin_config conf; member
80 memcpy(&hctx->conf, &p->conf, sizeof(plugin_config)); in handler_ctx_init()
759 log_error(r->conf.errh, __FILE__, __LINE__, in process_ssi_stmt()
939 if (r->conf.force_lowercase_filenames) { in process_ssi_stmt()
945 && (!r->conf.force_lowercase_filenames in process_ssi_stmt()
962 if (!r->conf.follow_symlink in process_ssi_stmt()
1169 int serrh_fd = r->conf.serrh ? r->conf.serrh->fd : -1; in process_ssi_stmt()
1299 log_error(r->conf.errh, __FILE__, __LINE__, in process_ssi_stmt()
1589 if (!p->conf.content_type) { in mod_ssi_handle_request()
[all …]
H A Dmod_staticfile.c30 plugin_config conf; member
60 p->conf = p->defaults; /* copy small struct instead of memcpy() */ in mod_staticfile_patch_config()
64 mod_staticfile_merge_config(&p->conf, in mod_staticfile_patch_config()
104 if (r->conf.log_request_handling) in mod_staticfile_not_handled()
105 log_error(r->conf.errh, __FILE__, __LINE__, in mod_staticfile_not_handled()
122 if (!pconf->etags_used) r->conf.etag_flags = 0; in mod_staticfile_process()
144 return mod_staticfile_process(r, &p->conf); in URIHANDLER_FUNC()
H A Dmod_authn_sasl.c41 plugin_config conf; member
97 p->conf = p->defaults; /* copy small struct instead of memcpy() */ in mod_authn_sasl_patch_config()
101 mod_authn_sasl_merge_config(&p->conf, in mod_authn_sasl_patch_config()
216 *res = p->conf.pwcheck_method->ptr; in mod_authn_sasl_cb_getopt()
217 sz = buffer_clen(p->conf.pwcheck_method); in mod_authn_sasl_cb_getopt()
219 else if (0 == strcmp(opt, "sasldb_path") && p->conf.sasldb_path) { in mod_authn_sasl_cb_getopt()
220 *res = p->conf.sasldb_path->ptr; in mod_authn_sasl_cb_getopt()
221 sz = buffer_clen(p->conf.sasldb_path); in mod_authn_sasl_cb_getopt()
250 log_error(((request_st *)vreq)->conf.errh, __FILE__, __LINE__, in mod_authn_sasl_cb_log()
276 rc = sasl_server_new(p->conf.service, p->conf.fqdn, in mod_authn_sasl_query()
/lighttpd1.4/tests/
H A DMakefile.am15 condition.conf \
17 fastcgi-responder.conf \
21 proxy.conf \
23 scgi-responder.conf \
24 var-include-sub.conf
33 lighttpd.conf \
/lighttpd1.4/src/t/
H A Dtest_mod_ssi.c68 hctx->conf.ssi_exec = 0; /* default */ in test_mod_ssi_read_fd()
76 hctx->conf.ssi_exec = 1; in test_mod_ssi_read_fd()
90 hctx->conf.ssi_exec = 0; in test_mod_ssi_read_fd()
126 chunkqueue_read_squash(cq, r->conf.errh); in test_mod_ssi_read_fd()
150 r.conf.errh = fdlog_init(NULL, -1, FDLOG_FD); in test_mod_ssi()
151 r.conf.errh->fd = -1; /* (disable) */ in test_mod_ssi()
152 r.conf.follow_symlink = 1; in test_mod_ssi()
154 handler_ctx * const hctx = handler_ctx_init(p, r.conf.errh); in test_mod_ssi()
161 fdlog_free(r.conf.errh); in test_mod_ssi()

1234