Up to now the root of the webserver filesystem was always the current directory....
commitfb1ec3e28b2282a98518e21d42b5c65aa5ca105e
authoroliverschmidt <oliverschmidt>
Mon, 30 Aug 2010 19:44:38 +0000 (30 19:44 +0000)
committeroliverschmidt <oliverschmidt>
Mon, 30 Aug 2010 19:44:38 +0000 (30 19:44 +0000)
tree8ea3d497e92fd6acda2c994aa5280c5c66bda84d
parent63b6d1070ba3d3f96986f6da38817c2fd8fb618f
Up to now the root of the webserver filesystem was always the current directory. Now an optional file 'wwwroot.cfg' is read. If present its content is used as prefix in the conversion of http paths to local paths. This prefix may be a relative path as well as an absolute path.
This is especially useful for the cc65-based targets as it ain't possible there to "just change into the wwwroot directory and start the webserver using its pathname".
apps/webserver/httpd-cfs.c
apps/webserver/urlconv.c
apps/webserver/urlconv.h
examples/ipv6/rpl-border-router/httpd-simple.c