[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. |