Thread: [Cppcms-users] wikipp: all uri returns 302 on internal cppcms webserver
Brought to you by:
artyom-beilis
From: Manveru <ma...@ma...> - 2012-06-10 12:00:20
|
Hello, I've just build wikipp from svn trunk and it runs. I set up the internal web server for testing purpose. But after that Firefox complains about bad redirections. So, I tested what happen if I manually entered HTTP requests and the server always return 302. Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /wikipp/en/page/main HTTP/1.1 Host: localhost HTTP/1.0 302 Found Server: CppCMS-Embedded/1.1.0 Connection: close Content-Type: text/html; charset=utf-8 Location: /wikipp/en/page/main Status: 302 Found X-Powered-By: CppCMS/1.1.0 Connection closed by foreign host. What shall I check to get it working? The log of the wikipp contains no errors: 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) Whole log contains similar entries. I had once working wikipp, but based on old version of cppcms. Thanks in advance for any advice. -- Manveru jabber: ma...@ma... gg: 1624001 http://www.manveru.pl |
From: Marcel H. <ke...@co...> - 2012-06-13 22:01:20
|
Am 10.06.2012 13:36, schrieb Manveru: > Hello, > > I've just build wikipp from svn trunk and it runs. I set up the > internal web server for testing purpose. But after that Firefox > complains about bad redirections. So, I tested what happen if I > manually entered HTTP requests and the server always return 302. > > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > GET /wikipp/en/page/main HTTP/1.1 > Host: localhost > > HTTP/1.0 302 Found > Server: CppCMS-Embedded/1.1.0 > Connection: close > Content-Type: text/html; charset=utf-8 > Location: /wikipp/en/page/main > Status: 302 Found > X-Powered-By: CppCMS/1.1.0 > > Connection closed by foreign host. > > What shall I check to get it working? The log of the wikipp contains > no errors: > > 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main > (http_api.cpp:251) > 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main > (http_api.cpp:251) > 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main > (http_api.cpp:251) > 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main > (http_api.cpp:251) > > Whole log contains similar entries. I had once working wikipp, but > based on old version of cppcms. > > Thanks in advance for any advice. > -- > Manveru > jabber: ma...@ma... <mailto:ma...@ma...> > gg: 1624001 > http://www.manveru.pl > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users try to activate the logging feature and see again. http://cppcms.com/wikipp/en/page/cppcms_1x_config#logging |
From: Manveru <ma...@ma...> - 2012-07-05 21:13:43
|
2012/6/10 Manveru <ma...@ma...> > Hello, > > I've just build wikipp from svn trunk and it runs. I set up the internal > web server for testing purpose. But after that Firefox complains about bad > redirections. So, I tested what happen if I manually entered HTTP requests > and the server always return 302. > > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > GET /wikipp/en/page/main HTTP/1.1 > Host: localhost > > HTTP/1.0 302 Found > Server: CppCMS-Embedded/1.1.0 > Connection: close > Content-Type: text/html; charset=utf-8 > Location: /wikipp/en/page/main > Status: 302 Found > X-Powered-By: CppCMS/1.1.0 > > Connection closed by foreign host. > > What shall I check to get it working? The log of the wikipp contains no > errors: > > 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main > (http_api.cpp:251) > 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main > (http_api.cpp:251) > 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main > (http_api.cpp:251) > 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main > (http_api.cpp:251) > > Whole log contains similar entries. I had once working wikipp, but based > on old version of cppcms. > > Thanks in advance for any advice. > - > I turned on debug logging (as Marcell adviced), and still only thing I have in the log is: 2012-07-05 22:47:36; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) May this happen because I took sqlite db from my previous instance of some older wikipp? If yes how to properly migrate the database? -- Manveru jabber: ma...@ma... gg: 1624001 http://www.manveru.pl |
From: Artyom B. <art...@ya...> - 2012-07-06 14:26:32
|
1st please register to the mailing list 2ns show the configuration file . Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Manveru <ma...@ma...> >To: cpp...@li... >Sent: Thursday, July 5, 2012 11:51 PM >Subject: Re: [Cppcms-users] wikipp: all uri returns 302 on internal cppcms webserver > > > > > >2012/6/10 Manveru <ma...@ma...> > >Hello, >> >>I've just build wikipp from svn trunk and it runs. I set up the internal web server for testing purpose. But after that Firefox complains about bad redirections. So, I tested what happen if I manually entered HTTP requests and the server always return 302. >> >> >>Trying 127.0.0.1... >>Connected to localhost. >>Escape character is '^]'. >>GET /wikipp/en/page/main HTTP/1.1 >>Host: localhost >> >>HTTP/1.0 302 Found >>Server: CppCMS-Embedded/1.1.0 >>Connection: close >>Content-Type: text/html; charset=utf-8 >>Location: /wikipp/en/page/main >>Status: 302 Found >>X-Powered-By: CppCMS/1.1.0 >> >>Connection closed by foreign host. >> >>What shall I check to get it working? The log of the wikipp contains no errors: >> >> >>2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) >>2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) >>2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) >>2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) >> >>Whole log contains similar entries. I had once working wikipp, but based on old version of cppcms. >> >>Thanks in advance for any advice. >>- >> > >I turned on debug logging (as Marcell adviced), and still only thing I have in the log is: >2012-07-05 22:47:36; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) > >May this happen because I took sqlite db from my previous instance of some older wikipp? If yes how to properly migrate the database? > > >-- >Manveru >jabber: ma...@ma... > gg: 1624001 > http://www.manveru.pl > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Artyom B. <art...@ya...> - 2012-07-12 08:15:14
|
Two points: 1. You should configure the script name as "/wikipp", see: http://cppcms.com/wikipp/en/page/cppcms_1x_config#http.script 2. You had not enabled internal file server :-) you need to serve static file as well. Point its document root to correct location such that, see: http://cppcms.com/wikipp/en/page/cppcms_1x_config#file_server Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Manveru <ma...@ma...> >To: cpp...@li... >Sent: Tuesday, July 10, 2012 10:07 PM >Subject: Re: [Cppcms-users] wikipp: all uri returns 302 on internal cppcms webserver > > >From: Artyom Beilis <artyomtnk@...> >>Subject: Re: wikipp: all uri returns 302 on internal cppcms webserver >>Newsgroups: gmane.comp.lib.cppcms.user >>Date: 2012-07-06 14:26:20 GMT (4 days, 4 hours and 38 minutes ago) >> >>1st please register to the mailing list >>2ns show the configuration file . >> >> Artyom Beilis >>-------------- >>CppCMS - C++ Web Framework: http://cppcms.com/ >>CppDB - C++ SQL Conne >>2012/7/5 Manveru <ma...@ma...> >> >> >> >> >>2012/6/10 Manveru <ma...@ma...> >> >>Hello, >>> >>>I've just build wikipp from svn trunk and it runs. I set up the internal web server for testing purpose. But after that Firefox complains about bad redirections. So, I tested what happen if I manually entered HTTP requests and the server always return 302. >>> >>> >>>Trying 127.0.0.1... >>>Connected to localhost. >>>Escape character is '^]'. >>>GET /wikipp/en/page/main HTTP/1.1 >>>Host: localhost >>> >>>HTTP/1.0 302 Found >>>Server: CppCMS-Embedded/1.1.0 >>>Connection: close >>>Content-Type: text/html; charset=utf-8 >>>Location: /wikipp/en/page/main >>>Status: 302 Found >>>X-Powered-By: CppCMS/1.1.0 >>> >>>Connection closed by foreign host. >>> >>>What shall I check to get it working? The log of the wikipp contains no errors: >>> >>> >>>2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) >>>2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) >>>2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) >>>2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) >>> >>>Whole log contains similar entries. I had once working wikipp, but based on old version of cppcms. >>> >>>Thanks in advance for any advice. >>>- >>> >> >>I turned on debug logging (as Marcell adviced), and still only thing I have in the log is: >>2012-07-05 22:47:36; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) >> >>May this happen because I took sqlite db from my previous instance of some older wikipp? If yes how to properly migrate the database? >> >> >Ad.1. registered. >Ad.2. here you are: > ><see attachment> > >-- >Manveru >jabber: ma...@ma... > gg: 1624001 > http://www.manveru.pl > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Manveru <ma...@ma...> - 2012-07-12 20:19:01
|
Oh yes! Thank you, that helped. But these two steps are not mentioned on documentation page. Is it possible to pass some configuration to the Discount markdown library? I would like to enable inline HTML and definition lists. Thanks in advance. 2012/7/12 Artyom Beilis <art...@ya...> > Two points: > > 1. You should configure the script name as "/wikipp", see: > http://cppcms.com/wikipp/en/page/cppcms_1x_config#http.script > 2. You had not enabled internal file server :-) you need to serve > static file as well. Point its document root to correct location such > that, see: > http://cppcms.com/wikipp/en/page/cppcms_1x_config#file_server > > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > -- Manveru jabber: ma...@ma... gg: 1624001 http://www.manveru.pl |
From: Artyom B. <art...@ya...> - 2012-07-12 22:36:00
|
>________________________________ > From: Manveru <ma...@ma...> >To: Artyom Beilis <art...@ya...>; cpp...@li... >Sent: Thursday, July 12, 2012 11:18 PM >Subject: Re: [Cppcms-users] wikipp: all uri returns 302 on internal cppcms webserver > > >Oh yes! Thank you, that helped. But these two steps are not mentioned on documentation page. > Because you are not supposed to run wikipp behind internal web server. It is always recommended to use full web server like Lighttpd, Nginx or Apache. Internal web server should be used for development and embedded systems only >Is it possible to pass some configuration to the Discount markdown library? I would like to enable inline HTML and definition lists. > >Thanks in advance. > No, just edit the code :-) Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |