Thread: [Cppcms-users] cppcms_run not accepting document root configuration switch
Brought to you by:
artyom-beilis
From: doug l. <bi...@gm...> - 2012-05-27 10:19:49
|
Hi -- I want to serve public files from the public/ directory in my app. So, for instance, my main stylesheet would be at public/stylesheets/main.css, and I link to it in my view like so: <link href="/stylesheets/main.css" rel="Stylesheet" type="text/css"> However, when I start cppcms_run like so: sudo cppcms_run -r public app -c config/cucumber-config.js and go to the browser, it doesn't find the stylesheet. The same happens if I try to specify the folder like "public/" or "./public". If I copy the contents of the public directory to the root directory, and run cppcms_run without the document root switch, everything works. It also works if I link to the subfolders in public from the root directory. However, if I then try to specify the -r option, these stop working again. So the -r option is obviously doing something, but not what I would expect it to do. Can anybody please advise me as to what I'm doing wrong? Thanks very much, Doug. |
From: Artyom B. <art...@ya...> - 2012-05-27 12:12:18
|
What is the web server? Have you tried to provide a full path? Most web servers require the document-root to be a full path. Also note: Do not run cppcms_run as root... It is a bad idea. You don't need to run it as root. If you are using nginx, it may give some warnings but it yet runs. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: doug livesey <bi...@gm...> >To: cpp...@li... >Sent: Sunday, May 27, 2012 1:19 PM >Subject: [Cppcms-users] cppcms_run not accepting document root configuration switch > > >Hi -- I want to serve public files from the public/ directory in my app. > > >So, for instance, my main stylesheet would be at public/stylesheets/main.css, and I link to it in my view like so: > <link href="/stylesheets/main.css" rel="Stylesheet" type="text/css"> > > >However, when I start cppcms_run like so: > sudo cppcms_run -r public app -c config/cucumber-config.js > > >and go to the browser, it doesn't find the stylesheet. The same happens if I try to specify the folder like "public/" or "./public". >If I copy the contents of the public directory to the root directory, and run cppcms_run without the document root switch, everything works. >It also works if I link to the subfolders in public from the root directory. >However, if I then try to specify the -r option, these stop working again. >So the -r option is obviously doing something, but not what I would expect it to do. >Can anybody please advise me as to what I'm doing wrong? >Thanks very much, > Doug. >------------------------------------------------------------------------------ >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: doug l. <bi...@gm...> - 2012-05-27 17:57:33
|
Perfectly correct on both counts, thankyou very much, and thanks in general for being so helpful & patient with new users -- it's really appreciated. Doug. On 27 May 2012 13:12, Artyom Beilis <art...@ya...> wrote: > What is the web server? > Have you tried to provide a full path? > > Most web servers require the document-root to be a full path. > > Also note: Do not run cppcms_run as root... It is a bad idea. You don't > need to run > it as root. If you are using nginx, it may give some warnings but it yet > runs. > > > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > > > >________________________________ > > From: doug livesey <bi...@gm...> > >To: cpp...@li... > >Sent: Sunday, May 27, 2012 1:19 PM > >Subject: [Cppcms-users] cppcms_run not accepting document root > configuration switch > > > > > >Hi -- I want to serve public files from the public/ directory in my app. > > > > > >So, for instance, my main stylesheet would be at > public/stylesheets/main.css, and I link to it in my view like so: > > <link href="/stylesheets/main.css" rel="Stylesheet" type="text/css"> > > > > > >However, when I start cppcms_run like so: > > sudo cppcms_run -r public app -c config/cucumber-config.js > > > > > >and go to the browser, it doesn't find the stylesheet. The same happens > if I try to specify the folder like "public/" or "./public". > >If I copy the contents of the public directory to the root directory, and > run cppcms_run without the document root switch, everything works. > >It also works if I link to the subfolders in public from the root > directory. > >However, if I then try to specify the -r option, these stop working again. > >So the -r option is obviously doing something, but not what I would > expect it to do. > >Can anybody please advise me as to what I'm doing wrong? > >Thanks very much, > > Doug. > > >------------------------------------------------------------------------------ > >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 > > > > > > > > > ------------------------------------------------------------------------------ > 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: augustin <aug...@ov...> - 2012-05-27 19:10:10
|
On Monday, May 28, 2012 01:57:06 AM doug livesey wrote: > thankyou very much, and thanks in general for being so helpful & patient > with new users -- it's really appreciated. +1 Artyom's patience is noteworthy. Blessings, Augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ http://www.wechange.org/ http://searching911.info/ . |
From: Leon <le...@wl...> - 2012-05-28 01:27:01
|
+1 On Mon, May 28, 2012 at 3:09 AM, augustin <aug...@ov...>wrote: > On Monday, May 28, 2012 01:57:06 AM doug livesey wrote: > > thankyou very much, and thanks in general for being so helpful & patient > > with new users -- it's really appreciated. > > +1 > Artyom's patience is noteworthy. > > Blessings, > > Augustin. > > > > -- > Friends: http://www.reuniting.info/ > My projects: > http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ > http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ > http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ > http://www.wechange.org/ http://searching911.info/ > > > > > > > > > > > > > . > > > ------------------------------------------------------------------------------ > 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-05-28 13:44:30
|
Sourceforge has a donation system: https://sourceforge.net/donate/index.php?group_id=209965 Feel free to express your appreciation using it :-) Artyom Beilis >________________________________ > From: Leon <le...@wl...> >To: cpp...@li... >Sent: Monday, May 28, 2012 4:26 AM >Subject: Re: [Cppcms-users] appreciation > > >+1 > > >On Mon, May 28, 2012 at 3:09 AM, augustin <aug...@ov...> wrote: > >On Monday, May 28, 2012 01:57:06 AM doug livesey wrote: >>> thankyou very much, and thanks in general for being so helpful & patient >>> with new users -- it's really appreciated. >> >>+1 >>Artyom's patience is noteworthy. >> >>Blessings, >> >>Augustin. >> >> >> >>-- >>Friends: http://www.reuniting.info/ >>My projects: >>http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ >>http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ >>http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ >>http://www.wechange.org/ http://searching911.info/ >> >> >> >> >> >> >> >> >> >> >> >> >>. >> >>------------------------------------------------------------------------------ >>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 >> > >------------------------------------------------------------------------------ >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: Mario P. <mp...@us...> - 2012-06-08 08:02:19
|
+1 On 28/05/12 03:26, Leon wrote: > +1 > > On Mon, May 28, 2012 at 3:09 AM, augustin > <aug...@ov... > <mailto:aug...@ov...>> wrote: > > On Monday, May 28, 2012 01:57:06 AM doug livesey wrote: > > thankyou very much, and thanks in general for being so helpful & patient > > with new users -- it's really appreciated. > > +1 > Artyom's patience is noteworthy. > > Blessings, > > Augustin. > > |