Re: [Cppcms-users] How to configure cppcms in IIS?
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2011-08-12 17:23:55
|
> > >We have a old CGI application and now want to refactor the code with cppcms framework. > > > But our application configured with IIS, and we don't want our > client change to another web server that might cause > inconsistent user experience. But I cannot figure out > how to configure IIS to host cppcms application. For example: > > >I'm in windows 7 with IIS 7.5 >Trying to run the an example with FastCgiModule. >Filled "hello.exe -c config.js" in Executable option. >But I can only get a blank webpage. > > >There is no document for how to configure IIS to use cppcms, could someone give me some hint? > Ok... IIS... Good question, unfortunately not great. ---------------------------------------------------- FastCGI: For the start IIS should support FastCGI over TCP/IP and this is seems to be what you need to use. But it seems that IIS's FastCGI implementation is quite limited and designed mostly to run PHP. There are two things you need to find how to configure: - How to configure TCP/IP port that IIS would connect CppCMS application with. - How to define that it should start one application instance or use external FastCGI server. Unfortunately I could not find this in documentation. http://www.iis.net/ConfigReference/system.webServer/fastCgi/application it seems that IIS assumes that FastCGI applications are kind of "script-runners" and it starts many instances of it and provides the connection mostly over named pipes. So I'm not really sure if FastCGI is relevant option for IIS. ------------------------------------------------------- Other option is to use IIS as reverse proxy and forward the HTTP connection the the CppCMS program. Of course you need to ensure that IIS sanitizes the requests and not passes them "as-is" to other web server. ------------------------------------------------------- The most reliable way would be to use Apache or other web server that support FastCGI properly as the frontend and run IIS as reverse Proxy. Artyom |