Re: [Cppcms-users] Front-end http server without upload buffering
Brought to you by:
artyom-beilis
From: Julian P. <ju...@wh...> - 2010-11-24 20:37:17
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 24.11.2010 21:14, schrieb Artyom: > request().script_name() and request().path_info() is the answer > if I understand it right. The problem is, that the request is not dispatched to my application, see below. > > You can provide quite complex and flexible mount point > for CppCMS application. See cppcms::mount_point class docs. I know that and in other servers I use it quite extensively ;). > 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. > That was the problem: I mounted the application without mount point and added a main implementation to the application, which did never get called. It was called, however, as soon as I used ^(.*)$ as mount point, which, at least as I see it, means exactly the same: mount on everything. So I'd need a way to print the URL that is used for dispatch if no application is mounted and cppcms therefore returns a 404. > > I know I just hand found it too cryptic and not well documented > in comparison to other confugration files designed for human > being. > I had just a short look into it after I configured a cherokee server to perform further tests with my services, and while it is not that beautifully structured (no line breaks etc.), it's very logical indeed. If you're interested in adding cherokee to the cppcms_run utility, I'd suggest you do a basic setup by web GUI and then look in the configuration file to see what you'd have to change within your script. Because it's written by a machine entirely, its structure is quite logical, though. Regards, Julian -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJM7XevAAoJENidYKvYQHlQiUgQAMyhpTHmgJeVhj5mS6SfvGD1 AL+70F7mIkdevPRxZAyx/V8grcV5cDB4dwx3M4xP2Gu6PwDZeuVfO3TxaCIDSJFn oboaXRYgPgcB6r6cFUixmKi8l4G3tOMWlzAeVgegd+UcS3+ehtaugfZLYbU26oIZ Udn49N0k55auRgzDJzFmw84SImhSHS4KROHEm2szG+8cCDWRk3fL8gQEXT10/2nt 0lBzdtgPt8+6Zb/KKNsKUC4lqfWD0+OPKuGQULZ5sGyogyGwEId65Fay6nfigGWX AqfxO5hEd7gu8NdM2Nf13ImAVGTZMHkfP4jkcLmWqeLz1Hm7sgGc+O0a8wy93wWy RVFcFCJs2Klsc1UTfyX8Etb2GFFZsOj4uUIPHvxQMbEWmkwdEQhvcOWxGpFo0c86 w6tyjs+IitywQ2g6/KEDKqG/25QZRG0CLx8P4BPgBdn98ZsZX50Yd8dn9YdoJIuf 4rqrKqq3U+UNoXFpJ89dUMeol2EVLenKZkYVBzHifZmrW54DKCAjrEekKKMSSI42 cUeDBz33keesRaU5zRKq9+XHbZRwQS/A+LZqXCvlIXVMZK5bqpiHTDslqjX4QW6n CXV2V2BbXV7Tqlu1T21kTiWTGGjTPpcbjPf8lEW3fZCa/xtu6F/Ksu2p5eqToY9L N8v266B+YXM8bVR3rKPJ =OhGP -----END PGP SIGNATURE----- |