> > > 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
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox