Project

General

Profile

Actions

Bug #1601

closed

Requestion subdomain with $HTTP["scheme"] and url.redirect with %0 kills server

Added by Anonymous about 17 years ago. Updated almost 16 years ago.

Status:
Fixed
Priority:
High
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

I'm using this term to create a systemwide subdomain which should only be accessed with https. non-https requests are getting identified by $HTTP["scheme"] and then redirected to https://%0:444 (I'm using 444 as secure port).
If i now make a request to the site (browser or curl doesn't matter, curl output: (52) Empty reply from server) i will get a blank site and the lighttpd process gets killed. (php5-cgi is still running)

$HTTP["host"] =~ "^webmail\.(.*)$" {
$HTTP["scheme"] == "http" {
url.redirect = ( "^/(.*)" => "https://%0:444" )
}
server.document-root = "/usr/share/squirrelmail/" 
}

strace/backtrace is available.
this bug is also reproducable (atleast for me).

-- fat-soeren


Files

lighttpd.backtrace (33.8 KB) lighttpd.backtrace backtrace of the bug -- fat-soeren Anonymous, 2008-03-18 00:42
lighttpd.strace (75.7 KB) lighttpd.strace strace of the bug -- fat-soeren Anonymous, 2008-03-18 00:42

Added by stbuehler about 17 years ago

Revision 2cf3927e (diff)

Fix segfault for appending matched parts if there was no regex matching (just give empty strings) (#1601)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2138 152afb58-edef-0310-8abb-c4023f1b3aa9

Added by stbuehler almost 16 years ago

Revision 2476 (diff)

merge: Fix segfault for appending matched parts if there was no regex matching (just give empty strings) (#1601)

Actions

Also available in: Atom