Re: [Cppcms-users] Front-end http server without upload buffering
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-11-24 20:14:19
|
> I had only little problems so far (using scgi), because > cherokee seems > to set another SCRIPT_NAME or PATH_INFO than lighttpd does > (URL rewrite > works in a quite different way). Is there a way to see in > cppcms which > SCRIPT_NAME/PATH_INFO is sent? request().script_name() and request().path_info() is the answer if I understand it right. > So that I could adjust the > paths > properly? I could sove the problem temporarily by mounting > my > application with the mount path ^(.*)$ and passing the > first match to > the application. To me, it doesn't seem to make any > difference, but > mounting the application without any mount path results in > 404 errors by > cppcms. You can provide quite complex and flexible mount point for CppCMS application. See cppcms::mount_point class docs. http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1mount__point.html http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1applications__pool.html If you have any dougbts about what happens create a simple class that "mounts" to everithing (default) and print in it's main script_name and path_info. > you > may edit the > cherokee.conf directly. There are guides on their project > site > http://www.cherokee-project.com how to do this. I know I just hand found it too cryptic and not well documented in comparison to other confugration files designed for human being. Artyom |