Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 35) sorted by relevance

12

/lighttpd1.4/src/
H A Dgw_backend.c354 host->host ? host->host->ptr : "", host->port, in gw_proc_check_enable()
431 else if (host->host->size) { in gw_proc_sockaddr_init()
837 host->host ? host->host->ptr : "", in gw_host_get()
906 host->host ? host->host->ptr : "", in gw_host_get()
936 host->host ? host->host->ptr : "", host->port); in gw_host_get()
1508 if ((host->host || host->port) && host->unixsocket) { in gw_set_defaults_backend()
1517 if (host->host && *host->host->ptr == '/' && !host->unixsocket) { in gw_set_defaults_backend()
1518 host->unixsocket = host->host; in gw_set_defaults_backend()
1552 if (!host->host && !host->bin_path) { in gw_set_defaults_backend()
1563 if (!host->host) { in gw_set_defaults_backend()
[all …]
H A Dmod_simple_vhost.c135 if (host) { in build_doc_root_path()
140 if (NULL == (dp = strchr(host->ptr, ':'))) { in build_doc_root_path()
141 buffer_append_string_buffer(out, host); in build_doc_root_path()
143 buffer_append_string_len(out, host->ptr, dp - host->ptr); in build_doc_root_path()
155 static int build_doc_root(request_st * const r, plugin_data *p, buffer *out, const buffer *host) { in build_doc_root() argument
157 build_doc_root_path(out, p->conf.server_root, host, p->conf.document_root); in build_doc_root()
185 const buffer *host = &r->uri.authority; in mod_simple_vhost_docroot() local
186 if ((!buffer_is_blank(host) && build_doc_root(r, p, b, host)) in mod_simple_vhost_docroot()
187 || build_doc_root(r, p, b, (host = p->conf.default_host))) { in mod_simple_vhost_docroot()
188 if (host) { in mod_simple_vhost_docroot()
[all …]
H A Dnetwork.c195 buffer_clear(host); in network_host_normalize_addr_str()
213 if (buffer_is_blank(host)) { in network_host_parse_addr()
218 h = host->ptr; in network_host_parse_addr()
359 const char *host; in network_server_init() local
385 host = host_token->ptr; in network_server_init()
386 if ((use_ipv6 && (*host == '\0' || *host == ':')) || (host[0] == '[' && host[1] == ']')) { in network_server_init()
392 if (*host == '[') use_ipv6 = 1; in network_server_init()
422 host = host_token->ptr; in network_server_init()
487 if (*host == '/') unlink(host); in network_server_init()
550 if (0 != m && *host == '/' && -1 == chmod(host, m)) { in network_server_init()
[all …]
H A Dmod_auth_api.c77 array_free_data(&require->host); in http_auth_require_free()
94 …uire_t * const require, const char * const user, const char * const group, const char * const host) in http_auth_match_rules() argument
107 if (NULL != host in http_auth_match_rules()
108 && http_auth_array_contains(&require->host, host, strlen(host))) { in http_auth_match_rules()
H A Dmod_vhostdb_ldap.c29 const char *host; member
59 static void mod_vhostdb_dbconf_add_scheme (server *srv, buffer *host) in mod_vhostdb_dbconf_add_scheme() argument
61 if (!buffer_is_blank(host)) { in mod_vhostdb_dbconf_add_scheme()
66 char *b, *e = host->ptr; in mod_vhostdb_dbconf_add_scheme()
87 buffer_copy_buffer(host, tb); in mod_vhostdb_dbconf_add_scheme()
95 const char *basedn=NULL,*binddn=NULL,*bindpw=NULL,*host=NULL,*cafile=NULL; in mod_vhostdb_dbconf_setup() local
108 host = ds->value.ptr; in mod_vhostdb_dbconf_setup()
139 && NULL != host && NULL != basedn) { in mod_vhostdb_dbconf_setup()
156 dbconf->host = host; in mod_vhostdb_dbconf_setup()
257 ret = ldap_initialize(&ld, s->host); in mod_authn_ldap_host_init()
H A Dmod_evhost.c215 static void mod_evhost_parse_host(buffer *key, array *host, buffer *authority) { in mod_evhost_parse_host() argument
231 array_set_key_value(host,CONST_STR_LEN("%0"),ptr,colon-ptr); in mod_evhost_parse_host()
248 array_set_key_value(host, CONST_STR_LEN("%0"), ptr, colon-ptr); in mod_evhost_parse_host()
260 array_set_key_value(host, BUF_PTR_LEN(key), ptr+1, colon-ptr-1); in mod_evhost_parse_host()
271 array_set_key_value(host, BUF_PTR_LEN(key), ptr, colon-ptr); in mod_evhost_parse_host()
H A Drequest.c95 static int request_check_hostname(buffer * const host) { in request_check_hostname() argument
107 const char *h = host->ptr; in request_check_hostname()
110 uint32_t len = buffer_clen(host); in request_check_hostname()
121 memmove(host->ptr+hlen, colon, len - hlen); in request_check_hostname()
122 buffer_truncate(host, len); in request_check_hostname()
158 if (*h != ']' || h - host->ptr == 1) return -1; in request_check_hostname()
165 buffer_truncate(host, h - host->ptr); in request_check_hostname()
539 const char * const host = uri + (uri[4] == ':' ? 7 : 8); in http_request_parse_reqline_uri() local
540 const size_t hostlen = nuri - host; in http_request_parse_reqline_uri()
546 http_request_header_set_Host(r, host, hostlen); in http_request_parse_reqline_uri()
H A Dmod_auth_api.h47 array host; member
58 …_rules (const http_auth_require_t *require, const char *user, const char *group, const char *host);
H A Dmod_fastcgi.c235 gw_host *host = hctx->host; in fcgi_create_env() local
240 host->break_scriptfilename_for_php, in fcgi_create_env()
241 host->docroot, in fcgi_create_env()
242 host->strip_request_uri in fcgi_create_env()
H A Dmod_vhostdb_pgsql.c49 const char *dbname=NULL, *user=NULL, *pass=NULL, *host=NULL, *port=NULL; in mod_vhostdb_dbconf_setup() local
63 host = ds->value.ptr; in mod_vhostdb_dbconf_setup()
83 PGconn *dbconn = PQsetdbLogin(host,port,NULL,NULL,dbname,user,pass); in mod_vhostdb_dbconf_setup()
H A Dgw_backend.h76 const buffer *host; member
302 gw_host *host; member
H A Dmod_vhostdb_mysql.c50 const char *dbname=NULL, *user=NULL, *pass=NULL, *host=NULL, *sock=NULL; in mod_vhostdb_dbconf_setup() local
65 host = ds->value.ptr; in mod_vhostdb_dbconf_setup()
110 if (!mysql_real_connect(dbconn, host, user, pass, dbname, port, sock, in mod_vhostdb_dbconf_setup()
H A Dmod_scgi.c181 gw_host *host = hctx->host; in scgi_create_env() local
183 http_cgi_opts opts = { 0, 0, host->docroot, NULL }; in scgi_create_env()
/lighttpd1.4/doc/outdated/
H A Dproxy.txt57 ( "host" => <string> ,
59 ( "host" => <string> ,
67 :"host": is ip of the proxy server
75 "host" => "10.0.0.242",
88 $HTTP["host"] == "www.example.org" {
90 proxy.server = ( "" => ( ( "host" => "10.0.0.10" ),
91 ( "host" => "10.0.0.11" ),
92 ( "host" => "10.0.0.12" ),
93 ( "host" => "10.0.0.13" ),
94 ( "host" => "10.0.0.14" ),
[all …]
H A Dsimple-vhost.txt26 Every virtual host is in a directory below a base directory in a path that
42 server-root + default-host + document-root
57 simple-vhost.default-host = "www.example.org"
69 simple-vhost.default-host = "www.example.org"
72 $HTTP["host"] == "news.example.org" {
86 $HTTP["host"] !~ "^(news\.example\.org)$" {
88 simple-vhost.default-host = "www.example.org"
92 $HTTP["host"] == "news.example.org" {
102 root of the virtual host
104 simple-vhost.default-host
H A Dssl.txt52 $ cat host.key host.crt > host.pem
56 ssl.pemfile = "host.crt"
57 ssl.privkey = "host.key"
H A Dredirect.txt38 # from any www.host (with www.) to the host (without www.)
39 $HTTP["host"] =~ "^www\.(.*)" {
H A Dtraffic-shaping.txt25 a single connection or config context like a virtual host or a URL.
43 $HTTP["host"] == "www.example.org" {
47 which will override the default for this host.
H A Dfastcgi.txt96 ( "host" => <string> ,
99 # or host+port
115 ( "host" => ...
167 Multiple extensions for the same host ::
170 (( "host" => "127.0.0.1",
175 (( "host" => "127.0.0.1",
183 (( "host" => "192.168.0.3",
206 (( "host" => "10.0.0.2",
224 (( "host" => "10.0.0.2", "port" => 1030 ),
225 ( "host" => "10.0.0.3", "port" => 1030 ))
[all …]
H A Drewrite.txt65 # use mod_*host instead to make real mass-vhost
74 $HTTP["host"] =~ "^.*\.([^.]+\.com)$" {
H A Dconfiguration.txt90 $HTTP["host"]
91 match on host
141 $HTTP["host"] =~ "(^|\.)example\.org$" {
169 $HTTP["host"] == "www.example.org" {
182 $HTTP["host"] == "www.example.org" {
196 $HTTP["host"] == "www.example.org" {
233 $HTTP["host"] == "www.example.org" {
H A Daccesslog.txt46 $HTTP["host"] == "mail.example.org" {
59 %h name or address of remote-host
/lighttpd1.4/src/t/
H A Dtest_mod_simple_vhost.c12 buffer *host = buffer_init(); in test_mod_simple_vhost_build_doc_root_path() local
17 buffer_copy_string_len(host, CONST_STR_LEN("www.example.org")); in test_mod_simple_vhost_build_doc_root_path()
19 build_doc_root_path(result, sroot, host, droot); in test_mod_simple_vhost_build_doc_root_path()
22 buffer_copy_string_len(host, CONST_STR_LEN("www.example.org:8080")); in test_mod_simple_vhost_build_doc_root_path()
23 build_doc_root_path(result, sroot, host, droot); in test_mod_simple_vhost_build_doc_root_path()
27 build_doc_root_path(result, sroot, host, droot); in test_mod_simple_vhost_build_doc_root_path()
31 buffer_free(host); in test_mod_simple_vhost_build_doc_root_path()
/lighttpd1.4/tests/
H A DLightyTest.pm258 my $host = "127.0.0.1";
268 PeerAddr => $host,
281 diag("\nsending request header to ".$host.":".$self->{PORT}) if $is_debug;
/lighttpd1.4/doc/config/conf.d/
H A Dsimple_vhost.conf19 simple-vhost.default-host = "default.example.com"

12