I have a busy box system which includes the vanilla busy box web server,
listening on port 80, and also my own http server that processes data
requests and listens on my own custom-designed port: 3420.  I'm using Ajax
and Javascript to create a web app, and my original intention was that the
pages (hosted on busy box as http://myip) could simply fetch data from my
http server as http://myip:3420.  But, I just learned that Ajax doesn't
allow this; it's a security violation because http://myip and
http://myip:3420 are treated as separate apps.  So I need to have it go to
busybox as a directory (ie http://myip/3420) and have busybox forward the
requests to my server on port 3420.  The problem is it needs to be very
efficient, and if I do this with a cgi script, that cgi app will get spawned
for each request.

Is there an easy way to do this in busybox's web server without changing the
code?  If not, I'm not familiar at all with busybox's code, so could anybody
tell me what source file/function I should go to if I need to write a "hack"
that looks at the incoming requests to see if it's for "/3420" and if so,
forward the rest of the URL to my app and and then forward my app's reply
back to the calling app.  Any suggestions?

Thanks.
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to