[Cppcms-users] Integrated FastCGI module
Brought to you by:
artyom-beilis
From: Sab <rim...@gm...> - 2012-12-17 17:24:59
|
Hi All, I would like to create a connection between a Webserver (Lighty) and an already existing C++ application. Both web server and the application run on the same system, an embedded linux platform. Next to it’s regular tasks, the application would need to monitor the user’s HTTP-Requests and allow or deny them according to the rights of the currently logged in user. I figured FastCGI could be the answer as it can be configured to run in "authorizer" mode, which seems to be matching what I need. So now I’m trying to find out how to integrate a FastCGI-Module into my existing application. As the database, where the user rights are stored is part of my application, I would like the fcgi module to run IN the application, in a separate thread, instead of as a separate executable. I see the common usage is the later but that wouldn’t work for me. I checked the FastCGI DevKit library "fcgiapp" and found that the module has to be either launched by the server (bin-path) or if I want to make it run independently from the web server, it has to be started with spawn-fcgi. Non of these options seems to help in my case, because as mentioned, the module has to be a PART of my existing application. Does CppCMS support also only stand alone modules? Or would CppCMS help in the realization of the above mentioned constellation? Does it support the Authorizer mode and allow me to parse the header of the request (uri, operation:GET/POST/DELETE..., user name, password)? I would very much appreciate any tip or comment, in which direction I should start. Thanks, Sab |