<div dir="ltr"><div><div>In the sws manual, it mentioned:<br>"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."<br>
<br></div>suppose I start the sws using:<br></div>./sws -c ~/www2 www<br><div><div><br></div><div>and there comes a request:<br></div><div>GET /cgi-bin/<a href="http://a.pl">a.pl</a> HTTP/1.1<br><br></div><div>the real path of <a href="http://a.pl">a.pl</a> should be ~/www2/<a href="http://a.pl">a.pl</a> or ~/www2/cgi-bin/<a href="http://a.pl">a.pl</a> ?<br>
<br></div><div>Thanks.<br></div></div></div>