[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] httpd: Support configurable start page
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2007-10-21 23:20:58
Message-ID: 200710220020.59017.vda.linux () googlemail ! com
[Download RAW message or body]
> > > Second, it's one page
> > > for the whole site, you can't decide that some directories have their own version of
> > the
> > > default page.
> >
> > You can analyze $QUERY_STRING env var. For example:
> >
> > #!/bin/sh
> >
> > # Must start with /
> > test x"${QUERY_STRING:0:1}" != x/ || exit 1
> >
> > # Remove /
> > QUERY_STRING="${QUERY_STRING:1:9990}"
> >
> > # cd into $QUERY_STRING dir
> > cd .. || exit 1
> > test "$QUERY_STRING" && cd "$QUERY_STRING" || exit 1
> >
> > # If index.php exists, run it
> > test -f index.php && exec php index.php
> >
> > ...
> >
>
> Sure, it works, but it's a lot of shell processing just for arranging to run the right
> script.
In cases where that is a problem, you can write this helper in C.
Just copy httpd_indexcgi.c and use it as a template.
> > I am committing PROXY support to svn.
> > Note that code around fdprintf(proxy_fd...) has changed, needs testing.
>
> That seems OK, but a typo was introduced in the config file parsing. See attached patch.
Thanks! Committed to svn.
--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic