Hi Oliver,

while it would not be difficult to add a default CGI component and could
make it easier to adopt tntnet for some use-cases, i also think it's a
bad idea to use tntnet in that way. You would loose all benefits of
tntnet, as you'll need to fork a child and execute external commands
(runtime interpreted in your case) which could be done (possible better)
as well with nginx or apache or any other webserver that supports CGI
execution.

In your case it would be much more efficient just to use the
gethostname() system call inside a <cpp> block and return the result.
You would no need to fork, no need to check if the UrlMap expression
could be misused by URL Parameters like
"../../../../../usr/bin/wget ..." and the code is not more complicated
that the shell oneliner.



Regards,
Julian


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to