[Cppcms-users] fastcgi setup and file server
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2010-08-18 07:56:23
|
Hello, What is the proper way to set up cppcms to run with fastcgi? I have libapache2-mod-fastcgi installed. When I run the hello_world example, I change the config.js file: "service" : { "api" : "fastcgi", but the browser just hangs in there, and never returns anything. I searched the web but I couldn't find a proper documentation (at least not one I understood). The problem with "api":"http" is that I have not found a way to configure it so that: 1- we can serve file (file_server = true, to serve .css files, etc). 2- there is no prefix (from the script) at the beginning of the URL. In the 'mb' example, all the url's are prefixed like this: url = request().script_name()+"/tree/"+lexical_cast<string>(id); where my code simply does the equivalent of: url = "/tree/"+lexical_cast<string>(id); http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_config I tried several combinations of: service.api http.script file_server.enable file_server.document_root but the only way I managed to make it work is when all the URL are prefixed with the script name. Thanks, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |