Project

General

Profile

Bug #1905

mod_simple_vhost default host not working

Added by jbittel over 7 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_simple_vhost
Target version:
Start date:
2009-02-17
Due date:
% Done:

100%

Missing in 1.5.x:

Description

I recently installed 1.4.21 on one of my servers that uses mod_simple_vhost and immediately the default host stopped working. All requests that should have used that field returned a 404. I reverted r2322 and immediately it began working correctly again. The problem seems to be caused by the fact that the return added in r2322 is causing the physical.doc_root to not get updated. I replicated the the buffer copy call to update the physical.doc_root into the default host fallback else branch, and it appears to have resolved the problem.

I've attached a patch that shows the one line that I changed. There may be a cleaner way to fix it, but I've been running this on my server and so far it's behaving as expected.

simple-vhost-patch (455 Bytes) jbittel, 2009-02-17 22:36

Associated revisions

Revision 2399 (diff)
Added by stbuehler over 7 years ago

Fix default vhost in mod_simple_vhost (fixes #1905)

Revision 6ea62edd (diff)
Added by stbuehler over 7 years ago

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

History

#1 Updated by stbuehler over 7 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2399.

Also available in: Atom