Re: [Cppcms-users] Mounting both synchronous and asynchronous applications
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2011-02-01 15:52:23
|
> > - > > http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1mount__point.html > > > > Now I am trying to also provide mount() parameter mount_point but have > trouble with the matching: First of all read once again this: http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1mount__point.html Most likely you are looking for: http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1mount__point.html#8aed02e81a2442db463910d47ac8d27a Basically you are probably looking for s.applications_pool().mount(cppcms::applications_factory<sync_app>(), cppcms::mount_point("/s/(.*)",1)); s.applications_pool().mount(as_app, cppcms::mount_point("/as/(.*)",1)); When you mount with one parameter you are using SCRIPT_NAME variable and PATH_INFO passed to the main(url) When you mount with string parameter and integer parameter you are using PATH_INFO and match against url and then pass matched part to main I don't know what is your web server configuration (or script names) so I can't tell you what happens, best is to match against PATH_INFO Artyom |