Re: [Cppcms-users] cppcms_run not accepting document root configuration switch
Brought to you by:
artyom-beilis
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 > > > |