[cs631apue] question about cgi path

hao wu hwu9 at stevens.edu
Sun Nov 24 16:52:47 EST 2013


In the sws manual, it mentioned:
"If a URI begins with the string "/cgi-bin", and the -c flag was specified,
then the remainder of the resource  path will be resolved relative to the
directory specified using this flag."

suppose I start the sws using:
./sws -c ~/www2 www

and there comes a request:
GET /cgi-bin/a.pl HTTP/1.1

the real path of a.pl should be ~/www2/a.pl or ~/www2/cgi-bin/a.pl ?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20131124/2747d92b/attachment.html>


More information about the cs631apue mailing list