NetBSD Problem Report #50171

From www@NetBSD.org  Tue Aug 25 14:10:48 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 21B38A65BA
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 25 Aug 2015 14:10:48 +0000 (UTC)
Message-Id: <20150825141047.22444A65BB@mollari.NetBSD.org>
Date: Tue, 25 Aug 2015 14:10:47 +0000 (UTC)
From: mspo@mspo.com
Reply-To: mspo@mspo.com
To: gnats-bugs@NetBSD.org
Subject: bozohttpd enhancements
X-Send-Pr-Version: www-1.0

>Number:         50171
>Category:       bin
>Synopsis:       bozohttpd enhancements
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 25 14:15:00 +0000 2015
>Originator:     matthew sporleder
>Release:        7
>Organization:
netbsd.org
>Environment:
NetBSD wip.pkgsrc.org 7.0_BETA NetBSD 7.0_BETA (XEN3_DOMU) #3: Thu Jun  4 19:33:17 UTC 2015  root@amdmin.netbsd.de:/home/netbsd/7/amd64/obj/sys/arch/amd64/compile/XEN3_DOMU amd64
>Description:
There are two extremely common things web servers do that bozo should also be able to do:

redirect on files

use a fall-back resource
---

Right now bz seems to support redirecting entire directories, but not individual paths (I guess you could mkdir /file.html; ln -s ..) but maybe just a simple file containing redirects .bzredirs would be easier?

a fallback resource is very very common when using a "handler' for files which do not exist. This is commonly seen in apache as:
RewriteRule ! -f
RewriteRule ! -d
RewriteRule ^ /index.php

Where index.php will then handle the request, getting the UA's given url from the environment.  This ends up looking a lot nicer than a real redirect to /index.php?url=foo or even /index.php/foo
>How-To-Repeat:

>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.49 2026/05/14 01:52:41 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.