From: Julian P. <ju...@wh...> - 2010-08-10 11:53:53
Hallo,
how is the built-in fileserver to be configured, if I want to have
/path/to/webroot/static/* accessible under /static/*?
The configuration didn't make clear how to tell cppcms where to mount
the fileserver.
Thanks,
Julian
See: <http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_config#file\_server>
> The configuration didn't make clear how to tell cppcms where to mount
> the fileserver.
You don't mount it, you just define it.
You mount your application to specific points.
> /path/to/webroot/static/* accessible under /static/*?
You define file_server.document_root to /path/to/webroot
Note: when using HTTP web server you should specify script_name
for the location of your web application, anything that does not much
script_name would be served by file server.
See: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_config#http
Artyom