cppcms-users Mailing List for CppCMS C++ Web Framework (Page 21)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: CN <cn...@fa...> - 2016-01-25 09:25:08
|
Hello! I noticed below part of file "page.tmpl" in wikipp long time ago. <script type="text/javascript"> <!-- document.write('<for') document.write('m actio') document.write('n="') document.write('<%= submit %>" me') document.write('thod="po') document.write('st">') --> </script> I have no idea about the moral of such design, but I did not ask why. I think I should not keep pretending understanding it any more! What is funny is that trying to figure out why, I ended up running into an article saying that document.write() doesn't work with Firefox when it encounter xhtml :-) Could anyone clarify for me: Why the most simple and straightforward HTML code "<form>" is not used instead? Thank you in advance! Best Regards, CN -- http://www.fastmail.com - The way an email service should be |
From: mawan s. <ma...@gm...> - 2016-01-25 08:56:50
|
Ok, thanks .. i got it .. and i try it .. Thanks .. Mawan On Mon, Jan 25, 2016 at 3:48 PM, mawan sugiyanto <ma...@gm...> wrote: > Dear Artyom > > is it different term with prepared statement in mysql? > > http://dev.mysql.com/doc/refman/5.7/en/sql-syntax-prepared-statements.html > > I always got error "cppcms, error: Caught exception [cppdb::mysql::This > command is not supported in the prepared statement protocol yet]" when i > lock table; > > thanks > > > Mawan > > > On Mon, Jan 25, 2016 at 3:43 PM, Artyom Beilis <art...@gm...> > wrote: > >> > is cppdb always use prepared statement for all query? >> >> Dear Mawan, >> >> Can you please RTFM http://cppcms.com/sql/cppdb/stat.html >> >> Artyom >> >> >> ------------------------------------------------------------------------------ >> Site24x7 APM Insight: Get Deep Visibility into Application Performance >> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >> Monitor end-to-end web transactions and take corrective actions now >> Troubleshoot faster and improve end-user experience. Signup Now! >> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > |
From: mawan s. <ma...@gm...> - 2016-01-25 08:49:17
|
Dear Artyom is it different term with prepared statement in mysql? http://dev.mysql.com/doc/refman/5.7/en/sql-syntax-prepared-statements.html I always got error "cppcms, error: Caught exception [cppdb::mysql::This command is not supported in the prepared statement protocol yet]" when i lock table; thanks Mawan On Mon, Jan 25, 2016 at 3:43 PM, Artyom Beilis <art...@gm...> wrote: > > is cppdb always use prepared statement for all query? > > Dear Mawan, > > Can you please RTFM http://cppcms.com/sql/cppdb/stat.html > > Artyom > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@gm...> - 2016-01-25 08:43:55
|
> is cppdb always use prepared statement for all query? Dear Mawan, Can you please RTFM http://cppcms.com/sql/cppdb/stat.html Artyom |
From: Artyom B. <art...@ya...> - 2016-01-25 08:42:51
|
> is cppdb always use prepared statement for all query? Dear Mawan, Can you please RTFM http://cppcms.com/sql/cppdb/stat.html Artyom |
From: mawan s. <ma...@gm...> - 2016-01-25 08:37:12
|
Dear All I have error : cppdb::mysql::This command is not supported in the prepared statement protocol yet] it is happened when i use lock table. is cppdb always use prepared statement for all query? thanks Mawan |
From: Василий Т. <par...@gm...> - 2016-01-23 22:10:25
|
> > > Let's imagine jquery requests: > > 1) > > $.ajax({ > > method: "POST", > > url: "/test", > > contentType: "application/json", > > data: { "key": "test", "array": ["v1","v2","v3"] } > > }) > > > > jquery sends data in post form fields something like: > > key=test&array[]=v1&array[]=v2&array[]=v3 > > -> cppcms doesn't aggregate values into single json array via > > request().post("array") > > (neither "array", nor "array[]") > > > It shouldn't. If you test application/json than you should parse it as JSON > I haven't dig into jquery - this is what i've got with it with such settings. I was very surpised to see form post fields in place of json with contentType: "application/json" > > b) request doesn't have stream interface to fill cppcms::json::value, so > we > > have to deal with raw_post_data(), which is not recommended. > > > > Who told you raw_post_data() isn't recommended? > My bad. It looks like that was my own decision because of conditional behaviour of this method. > > > Do we have a convenient way to deal with json request? > > You can just create a temporary istream from the post data and parse > the json - that is what json-rpc API does. > This is what i do for now. > Also CppCMS 1.1 introduced json::parse from range of [char const *,char > const *) > > Thanks a lot, i'll try this one. > > Thanks. > > > > Artyom > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@gm...> - 2016-01-23 21:07:07
|
> Let's imagine jquery requests: > 1) > $.ajax({ > method: "POST", > url: "/test", > contentType: "application/json", > data: { "key": "test", "array": ["v1","v2","v3"] } > }) > > jquery sends data in post form fields something like: > key=test&array[]=v1&array[]=v2&array[]=v3 > -> cppcms doesn't aggregate values into single json array via > request().post("array") > (neither "array", nor "array[]") > It shouldn't. If you test application/json than you should parse it as JSON > b) request doesn't have stream interface to fill cppcms::json::value, so we > have to deal with raw_post_data(), which is not recommended. > Who told you raw_post_data() isn't recommended? > Do we have a convenient way to deal with json request? You can just create a temporary istream from the post data and parse the json - that is what json-rpc API does. Also CppCMS 1.1 introduced json::parse from range of [char const *,char const *) > Thanks. > Artyom |
From: Василий Т. <par...@gm...> - 2016-01-23 19:35:55
|
Surely there are obvious solutions: prepare data on client side (if you can) or use unwanted raw_post_data(). I think that json request data should be handled in a simpler way. Or i didn't find the way. 2016-01-23 1:14 GMT+03:00 redred77 <red...@gm...>: > How about sending stringify data per parameter if it is an array type? So > plain key=text will be sent normally but array= will have return data of > JSON.stringify. > > This will make you to deal with convenient request().post() as before. > > Thanks. > 2016. 1. 23. 오전 4:50에 "Василий Теркин" <par...@gm...>님이 작성: > >> Hello everybody. >> Let's imagine jquery requests: >> 1) >> $.ajax({ >> method: "POST", >> url: "/test", >> contentType: "application/json", >> data: { "key": "test", "array": ["v1","v2","v3"] } >> }) >> >> jquery sends data in post form fields something like: >> key=test&array[]=v1&array[]=v2&array[]=v3 >> -> cppcms doesn't aggregate values into single json array via >> request().post("array") >> (neither "array", nor "array[]") >> >> 2) >> $.ajax({ >> method: "POST", >> url: "/test", >> contentType: "application/json", >> data: JSON.stringify({ "key": "test", "array": ["v1","v2","v3"] }) >> }) >> >> now we get content in json string format, but >> a) request().post() doesn't work; >> b) request doesn't have stream interface to fill cppcms::json::value, so >> we have to deal with raw_post_data(), which is not recommended. >> >> Do we have a convenient way to deal with json request? >> Thanks. >> >> >> ------------------------------------------------------------------------------ >> Site24x7 APM Insight: Get Deep Visibility into Application Performance >> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >> Monitor end-to-end web transactions and take corrective actions now >> Troubleshoot faster and improve end-user experience. Signup Now! >> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: mawan s. <ma...@gm...> - 2016-01-23 00:49:40
|
i think cppcms not handle it as array, waiting for explanation about dynamic field on client and send it to server. thanks On Sat, Jan 23, 2016 at 5:14 AM, redred77 <red...@gm...> wrote: > How about sending stringify data per parameter if it is an array type? So > plain key=text will be sent normally but array= will have return data of > JSON.stringify. > > This will make you to deal with convenient request().post() as before. > > Thanks. > 2016. 1. 23. 오전 4:50에 "Василий Теркин" <par...@gm...>님이 작성: > >> Hello everybody. >> Let's imagine jquery requests: >> 1) >> $.ajax({ >> method: "POST", >> url: "/test", >> contentType: "application/json", >> data: { "key": "test", "array": ["v1","v2","v3"] } >> }) >> >> jquery sends data in post form fields something like: >> key=test&array[]=v1&array[]=v2&array[]=v3 >> -> cppcms doesn't aggregate values into single json array via >> request().post("array") >> (neither "array", nor "array[]") >> >> 2) >> $.ajax({ >> method: "POST", >> url: "/test", >> contentType: "application/json", >> data: JSON.stringify({ "key": "test", "array": ["v1","v2","v3"] }) >> }) >> >> now we get content in json string format, but >> a) request().post() doesn't work; >> b) request doesn't have stream interface to fill cppcms::json::value, so >> we have to deal with raw_post_data(), which is not recommended. >> >> Do we have a convenient way to deal with json request? >> Thanks. >> >> >> ------------------------------------------------------------------------------ >> Site24x7 APM Insight: Get Deep Visibility into Application Performance >> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >> Monitor end-to-end web transactions and take corrective actions now >> Troubleshoot faster and improve end-user experience. Signup Now! >> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: redred77 <red...@gm...> - 2016-01-22 22:14:38
|
How about sending stringify data per parameter if it is an array type? So plain key=text will be sent normally but array= will have return data of JSON.stringify. This will make you to deal with convenient request().post() as before. Thanks. 2016. 1. 23. 오전 4:50에 "Василий Теркин" <par...@gm...>님이 작성: > Hello everybody. > Let's imagine jquery requests: > 1) > $.ajax({ > method: "POST", > url: "/test", > contentType: "application/json", > data: { "key": "test", "array": ["v1","v2","v3"] } > }) > > jquery sends data in post form fields something like: > key=test&array[]=v1&array[]=v2&array[]=v3 > -> cppcms doesn't aggregate values into single json array via > request().post("array") > (neither "array", nor "array[]") > > 2) > $.ajax({ > method: "POST", > url: "/test", > contentType: "application/json", > data: JSON.stringify({ "key": "test", "array": ["v1","v2","v3"] }) > }) > > now we get content in json string format, but > a) request().post() doesn't work; > b) request doesn't have stream interface to fill cppcms::json::value, so > we have to deal with raw_post_data(), which is not recommended. > > Do we have a convenient way to deal with json request? > Thanks. > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Василий Т. <par...@gm...> - 2016-01-22 19:49:26
|
Hello everybody. Let's imagine jquery requests: 1) $.ajax({ method: "POST", url: "/test", contentType: "application/json", data: { "key": "test", "array": ["v1","v2","v3"] } }) jquery sends data in post form fields something like: key=test&array[]=v1&array[]=v2&array[]=v3 -> cppcms doesn't aggregate values into single json array via request().post("array") (neither "array", nor "array[]") 2) $.ajax({ method: "POST", url: "/test", contentType: "application/json", data: JSON.stringify({ "key": "test", "array": ["v1","v2","v3"] }) }) now we get content in json string format, but a) request().post() doesn't work; b) request doesn't have stream interface to fill cppcms::json::value, so we have to deal with raw_post_data(), which is not recommended. Do we have a convenient way to deal with json request? Thanks. |
From: mawan s. <ma...@gm...> - 2016-01-22 10:26:58
|
Dear All How to use form validation and is it can get error message foreach validation? Thanks Mawan |
From: mawan s. <ma...@gm...> - 2016-01-18 12:01:44
|
Thankyou Artyom i will try it . and this configuration FastCGIConfig -maxProcesses 1 -processSlack 1 I config on global apache configuration for all cgi app. Thanks On Mon, Jan 18, 2016 at 6:55 PM, Artyom Beilis <art...@gm...> wrote: > Note: > > This > > ScriptAliasMatch ^/myweb(.*)$ /opt/app/bin/mywebdata/mywebapp/myweb$1 > And this > > RewriteRule ^/(.*)$ /mywebapp/myweb$1 [QSA,L] > > I think it should be: RewriteRule ^/(.*)$ /myweb$1 [QSA,L] > > Also you have forgotten very-very important option: > > FastCGIConfig -maxProcesses 1 -processSlack 1 > > > Artyom > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@gm...> - 2016-01-18 11:55:59
|
Note: This > ScriptAliasMatch ^/myweb(.*)$ /opt/app/bin/mywebdata/mywebapp/myweb$1 And this > RewriteRule ^/(.*)$ /mywebapp/myweb$1 [QSA,L] I think it should be: RewriteRule ^/(.*)$ /myweb$1 [QSA,L] Also you have forgotten very-very important option: FastCGIConfig -maxProcesses 1 -processSlack 1 Artyom |
From: Artyom B. <art...@gm...> - 2016-01-18 11:53:11
|
Yes I know My primary mail is at Yahoo so I accidentally send the mail directly from Yahoo instead opening GMail that uses me for mailing lists. That is why I send another one from GMail afterwards. On Mon, Jan 18, 2016 at 1:48 PM, Klaim - Joël Lamotte <mj...@gm...> wrote: > For information: this email is still considered spam by gmail. > > On 18 January 2016 at 11:37, Artyom Beilis <art...@ya...> wrote: >> >> You need to read this wiki doc: >> >> http://cppcms.com/wikipp/en/page/run_application_web_server_root >> |
From: Klaim - J. L. <mj...@gm...> - 2016-01-18 11:48:48
|
For information: this email is still considered spam by gmail. On 18 January 2016 at 11:37, Artyom Beilis <art...@ya...> wrote: > You need to read this wiki doc: > > http://cppcms.com/wikipp/en/page/run_application_web_server_root > > > > ------------------------------ > *From:* mawan sugiyanto <ma...@gm...> > *To:* cpp...@li... > *Sent:* Monday, January 18, 2016 12:14 PM > *Subject:* [Cppcms-users] apache configuration > > Dear All > > I have read the documentation about apache configuration > > > 1. FastCgiIpcDir /var/lib/apache2/fastcgi > 2. # Usually it is given in fastcgi.conf by default > 3. > 4. > FastCgiServer /opt/app/bin/hello -initial-env CPPCMS_CONFIG=/opt/app/etc/config.js -socket /tmp/hello-fcgi-socket > 5. # CPPCMS_CONFIG should hold the path to configuration file. > 6. # Note: you can't pass command line parameter > 7. # so you pass the location of configuration file > 8. # via CPPCMS_CONFIG environment variable > 9. > 10. FastCGIConfig -maxProcesses 1 -processSlack 1 > 11. # This is important - we want apache to use only > 12. # one process as we have cache and many other > 13. # goodies handled by outsefs > 14. > 15. ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 > 16. # We map script "/hello" to our application > 17. > 18. AddHandler fastcgi-script /opt/app/bin/hello > > > Can we configure ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 for > all root domain? > Can We configure cppcms as root application? Or we user index.html > manually? > > Thanks > > > Mawan > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: mawan s. <ma...@gm...> - 2016-01-18 11:39:47
|
Sorry Artyom , this is my apache virtual host configuration, what's wrong about this configuration. <Directory "/opt/app/bin/mywebdata"> AllowOverride All #Options None Options +ExecCGI Order allow,deny Allow from all </Directory> <VirtualHost myweb.test.com:80> ServerAdmin web...@co... DocumentRoot "/opt/app/bin/mywebdata" ServerName myweb.test.com ErrorLog "logs/myweb.test.com-error_log" CustomLog "logs/myweb.test.com-access_log" common FastCgiServer /opt/app/bin/mywebdata/mywebapp/myweb -initial-env CPPCMS_CONFIG=/opt/app/etc/configmyweb.js -socket /tmp/myweb-fcgi-socket ScriptAliasMatch ^/myweb(.*)$ /opt/app/bin/mywebdata/mywebapp/myweb$1 #ScriptAliasMatch ^/(.*)$ /opt/app/bin/mywebdata/mywebapp/myweb$1 AddHandler fastcgi-script /opt/app/bin/mywebdata/mywebapp/myweb RewriteEngine On RewriteRule ^(/media/.*)$ $1 [PT] RewriteRule ^(/favicon\.ico)$ $1 [PT] RewriteRule ^/(.*)$ /mywebapp/myweb$1 [QSA,L] </VirtualHost> still work when pointing to myweb.test.com/myweb/admi/users but when remove myweb => myweb.test.com/admi/users not working . On Mon, Jan 18, 2016 at 6:33 PM, Artyom Beilis <art...@gm...> wrote: > Yes of course, the rewrite rules and fastcgi script rules are independent > ones. > > > On Mon, Jan 18, 2016 at 1:16 PM, mawan sugiyanto <ma...@gm...> > wrote: > > Thankyou Artyom > > > > Is the configuration still need script alias? > > > > ScriptAliasMatch ^/app(.*)$ /opt/app/bin/appdata/appapp/app$1 > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@gm...> - 2016-01-18 11:33:43
|
Yes of course, the rewrite rules and fastcgi script rules are independent ones. On Mon, Jan 18, 2016 at 1:16 PM, mawan sugiyanto <ma...@gm...> wrote: > Thankyou Artyom > > Is the configuration still need script alias? > > ScriptAliasMatch ^/app(.*)$ /opt/app/bin/appdata/appapp/app$1 |
From: mawan s. <ma...@gm...> - 2016-01-18 11:17:08
|
Thankyou Artyom Is the configuration still need script alias? ScriptAliasMatch ^/app(.*)$ /opt/app/bin/appdata/appapp/app$1 On Mon, Jan 18, 2016 at 5:38 PM, Artyom Beilis <art...@gm...> wrote: > You need to read this wiki doc: > > http://cppcms.com/wikipp/en/page/run_application_web_server_root > > > Can we configure ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 for > all > > root domain? > > Can We configure cppcms as root application? Or we user index.html > manually? > > > > Thanks > > > > > > Mawan > > > > Artyom > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@gm...> - 2016-01-18 10:39:00
|
You need to read this wiki doc: http://cppcms.com/wikipp/en/page/run_application_web_server_root > Can we configure ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 for all > root domain? > Can We configure cppcms as root application? Or we user index.html manually? > > Thanks > > > Mawan > Artyom |
From: Artyom B. <art...@ya...> - 2016-01-18 10:37:09
|
You need to read this wiki doc: http://cppcms.com/wikipp/en/page/run_application_web_server_root From: mawan sugiyanto <ma...@gm...> To: cpp...@li... Sent: Monday, January 18, 2016 12:14 PM Subject: [Cppcms-users] apache configuration Dear All I have read the documentation about apache configuration - FastCgiIpcDir /var/lib/apache2/fastcgi - # Usually it is given in fastcgi.conf by default - - FastCgiServer /opt/app/bin/hello -initial-env CPPCMS_CONFIG=/opt/app/etc/config.js -socket /tmp/hello-fcgi-socket - # CPPCMS_CONFIG should hold the path to configuration file. - # Note: you can't pass command line parameter - # so you pass the location of configuration file - # via CPPCMS_CONFIG environment variable - - FastCGIConfig -maxProcesses 1 -processSlack 1 - # This is important - we want apache to use only - # one process as we have cache and many other - # goodies handled by outsefs - - ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 - # We map script "/hello" to our application - - AddHandler fastcgi-script /opt/app/bin/hello Can we configure ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 for all root domain?Can We configure cppcms as root application? Or we user index.html manually? Thanks Mawan ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: mawan s. <ma...@gm...> - 2016-01-18 10:15:33
|
Dear All I have read the documentation about apache configuration 1. FastCgiIpcDir /var/lib/apache2/fastcgi 2. # Usually it is given in fastcgi.conf by default 3. 4. FastCgiServer /opt/app/bin/hello -initial-env CPPCMS_CONFIG=/opt/app/etc/config.js -socket /tmp/hello-fcgi-socket 5. # CPPCMS_CONFIG should hold the path to configuration file. 6. # Note: you can't pass command line parameter 7. # so you pass the location of configuration file 8. # via CPPCMS_CONFIG environment variable 9. 10. FastCGIConfig -maxProcesses 1 -processSlack 1 11. # This is important - we want apache to use only 12. # one process as we have cache and many other 13. # goodies handled by outsefs 14. 15. ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 16. # We map script "/hello" to our application 17. 18. AddHandler fastcgi-script /opt/app/bin/hello Can we configure ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 for all root domain? Can We configure cppcms as root application? Or we user index.html manually? Thanks Mawan |
From: 陈抒 <csf...@gm...> - 2016-01-16 02:22:53
|
ok I will give you these useful information next week. Dean Chen Best regards http://blog.csdn.net/csfreebird On Sat, Jan 16, 2016 at 12:51 AM, Artyom Beilis <art...@gm...> wrote: > I have several things to comment > > 1. Boost.Asio or Lib-event are networking libraries and not full stack web > frameworks - and it can make significant difference. What your code does > per request? > 2. How do you have written CppCMS application, synchronous, asynchronous > etc. > For example for sync-application each requests gets to the thread pool > which > has major overhead but has an advantage for real world CPU intense > applications, > if it is asyncrhonous application do you use non-blocking api of CppCMS > 1.1 or not? > 3. How does the client work, for example does it accepts gzip compression. > CppCMS > compresses the output for synchronous applications by default. > 4. How much "real-application" is there? Is there anything useful that > application does? > > So more information needed. Also what version of CppCMS do you use. CppCMS > 1.1 has > some major performance improvements. > > It is interesting and I'd be glad to search and fix bottlenecks but I > really need some more details. > > Best, > Artyom > > On Fri, Jan 15, 2016 at 8:19 AM, 陈抒 <csf...@gm...> wrote: > >> the table shows not correctly in previous email, I upload the screenshot >> here. >> >> cpu,mem and request/sec have three number: min, max and average. >> >> [image: Inline image 2] >> >> our hardware information: >> >> >> [image: Inline image 3] >> >> >> >> >> >> Dean Chen >> Best regards >> http://blog.csdn.net/csfreebird >> >> On Fri, Jan 15, 2016 at 2:13 PM, 陈抒 <csf...@gm...> wrote: >> >>> Compare with other languages, c++ cppcms is faster. But my team did >>> benchmark a few months ago, we found the qps of mudoo is best, libevent is >>> much faster than boost asio and cppcms. We use two client servers to send >>> requests to one target server which runs four rest server based on mudoo, >>> libevent, boost:asio and cppcms one by one. >>> >>> Below is our benchmark resutl. >>> >>> Table 5: more details httpserver all versions >>> benchmarkServerCompilerOptimization >>> optionCpuMemDiskNetcard(in/out)Requests/seccppcms_basedclang++ 3.6.2-O3228% >>> / 239% / 228%9356 / 9416 / 9416--14252 / 16124 / 15820asio_basedclang++ >>> 3.6.2-O3300% / 305% / 303%4368 / 4564 /4416--33069 / 34247 / >>> 33360libevent_basedclang++ 3.6.2-O3763% / 764% / 764%5560 / 10M / >>> 5520--113373 / 114072 / 113713muduo_basedclang++ 3.6.2-O3650% / 694% / >>> 658%6272 / 6324 / 6312--303202 / 307204 / 305839 >>> We are not professional benchmark team, Artyom, you can do this >>> yourself to make sure our conclusion is correct. We can provide our rest >>> server code implemented by above four c++ framworks if you needed. >>> >>> Hope cppcms becomes faster and faster in the future. We really love it >>> when developing web site. LibEvent's performance is good, but we only use >>> it to build rest server instead of web site because the code style is too >>> low level and ugly. >>> >>> >>> >>> Dean Chen >>> Best regards >>> http://blog.csdn.net/csfreebird >>> >>> On Thu, Dec 31, 2015 at 11:48 PM, CN <cn...@fa...> wrote: >>> >>>> On Thu, Dec 24, 2015, at 06:20 PM, Artyom Beilis wrote: >>>> >>>> I want you guys to looking on it - try to build the version from trunk, >>>> try new API *and report your impressions*. >>>> >>>> >>>> Hi! Artyom, >>>> >>>> It's very nice to know CppCMS is under active development :-) >>>> >>>> I have just switched to application_specific_pool and have not >>>> encountered any issue with this new API *during last 10 minutes* :-) >>>> >>>> Meanwhile, I want to take this chance to show off my modifications to >>>> my local version of rpc_json.cpp as follows: >>>> >>>> * Comment out line 162: >>>> BOOSTER_DEBUG("cppcms") << "JSON-RPC Method call:" << method(); >>>> >>>> * Change line 181 from >>>> return_error("Invalid parameters"); >>>> to >>>> return_error("Invalid parameters passed to JSON RPC method >>>> \""+method()+"\""); >>>> >>>> * Change line 191 from >>>> return_error("Internal Service Error"); >>>> to >>>> return_error("Invalid JSON RPC method: "+method()); >>>> >>>> CppCMS rocks! Simply can not find a single reason not using this superb >>>> product and learning much C++ skills from it. >>>> >>>> Happy new year! >>>> CN >>>> >>>> -- http://www.fastmail.com - Email service worth paying for. Try it for free >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Cppcms-users mailing list >>>> Cpp...@li... >>>> https://lists.sourceforge.net/lists/listinfo/cppcms-users >>>> >>>> >>> >> >> >> ------------------------------------------------------------------------------ >> Site24x7 APM Insight: Get Deep Visibility into Application Performance >> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >> Monitor end-to-end web transactions and take corrective actions now >> Troubleshoot faster and improve end-user experience. Signup Now! >> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Cody S. <cod...@gu...> - 2016-01-15 17:55:36
|
Artyom Beilis <artyom.beilis@...> writes: > > Bottom line it shouldn't be considered reliable. It works well with > cooperative client with CppCMS's web server or web servers that > handle connections properly. > > Artyom > > P.S.: I was sure that I published a blog article regarding this but > I'm mistaken. So I probably need to write about it - how to detect a > client that gone. > Awesome, thanks again for the clarification! If you get that blog post written and you remember, you should follow-up to this thread with a link; I would love to read it and find out more about the issue. Cheers! |