Browse Source

Fix default vhost in mod_simple_vhost (fixes #1905)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2399 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.22
Stefan Bühler 13 years ago
parent
commit
6ea62edd52
  1. 1
      NEWS
  2. 2
      src/mod_simple_vhost.c

1
NEWS

@ -5,6 +5,7 @@ NEWS
- 1.4.22 -
* Fix wrong lua type for CACHE_MISS/CACHE_HIT in mod_cml (fixes #533)
* Fix default vhost in mod_simple_vhost (fixes #1905)
- 1.4.21 - 2009-02-16

2
src/mod_simple_vhost.c

@ -249,6 +249,8 @@ static handler_t mod_simple_vhost_docroot(server *srv, connection *con, void *p_
return HANDLER_GO_ON;
} else {
buffer_copy_string_buffer(con->server_name, p->conf.default_host);
buffer_copy_string_buffer(con->physical.doc_root, p->doc_root);
/* do not cache default host */
return HANDLER_GO_ON;
}

Loading…
Cancel
Save