From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <14ec7b180904161115m58881223mde6f1a8eab689a39@mail.gmail.com> References: <621112A569DAE948AD25CCDCF1C075331AB4DB@dolly.ntdom.cupdx> <621112A569DAE948AD25CCDCF1C075331AB4DC@dolly.ntdom.cupdx> <14ec7b180904161115m58881223mde6f1a8eab689a39@mail.gmail.com> Date: Thu, 16 Apr 2009 12:17:43 -0600 Message-ID: <14ec7b180904161117j1f16dee7t3bdbff53fe3b0bf5@mail.gmail.com> From: andrey mirtchovski To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] sources browser script? Topicbox-Message-UUID: dd89672c-ead4-11e9-9d60-3106f5b1d025 oops, forgot example: ^(.*)/download(.*)/$ @/magic/webls?dir=3D\1/download/\2 ^(.*)/src(.*)/$ @/magic/webls?dir=3D\1/src\2 On Thu, Apr 16, 2009 at 12:15 PM, andrey mirtchovski wrote: >> it's also interesting to note that they managed to hide the >> /magic/prog stuff =C2=A0from the urls somehow. >> > > that's accomplished via /sys/lib/httpd.rewrite. from httpd(8): > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Httpd handles replacements pre- > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fixed with @ internally, treating the r= equest as if it were > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0for the replacement (without the @) but= not informing the > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0client of the rewritten name. > > i have a version of httpd that accepts full regular expressions in > httpd.rewrite. >