Answer the question
In order to leave comments, you need to log in
What FastCGI library for C/C++ would you recommend?
I set out to write a website in FastCGI С++. I started digging on the internet. It's not entirely clear which is the best FastCGI library for C/C++ to use. Can you advise something?
Answer the question
In order to leave comments, you need to log in
Or maybe, well, it’s fast-sgi, but take the http library right away, and write everything directly with its help?
And then run everything through nginx to eliminate various security issues.
For example, we take libevent http - it allows you to process http requests, we write a single / multi-threaded server based on it.
The same can be done using boost.asio, in the boost itself there are many examples dedicated to creating http servers.
In addition, you have already been pointed to cppcms, which seems to be tailored for such tasks.
In any case, if you use this advice, I highly recommend not to expose such a self-written server to the outside, but to set everything up so that real requests come to a reliable web server, which will then proxy requests to yours.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question