Nginx to D ?

Max Klyga email at domain.com
Fri Dec 20 13:32:23 PST 2013


On 2013-12-20 21:21:22 +0000, Larry said:

> Hello,
> 
> I am not really confident on this one, but could D be interfaced with Nginx ?
> 
> It would be nice to replace python but if not easily doable, then it is 
> a no-no for me.
> 
> Any clue on it ?
> 
> Thanks

Sure you can. There are three options:
1. Make nginx act as a reverse proxy forwardind all traffic to some 
socket. You can use vibe.d this way
2. Make a D fastcgi process and point nginx to it. There is Adam 
Ruppe's cgi.d implementation for example.
3. Write an extension for nginx and use its internal api. Nginx is 
written in C and D can easily interface with C



More information about the Digitalmars-d mailing list