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".
This commit is contained in:
parent
f02cdc7c8f
commit
a5dff5e08a
4 changed files with 29 additions and 7 deletions
|
@ -28,12 +28,13 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: urlconv.h,v 1.2 2010/04/11 20:16:56 oliverschmidt Exp $
|
||||
* $Id: urlconv.h,v 1.3 2010/08/30 19:44:38 oliverschmidt Exp $
|
||||
*/
|
||||
|
||||
#ifndef __URLCONV_H__
|
||||
#define __URLCONV_H__
|
||||
|
||||
void urlconv_init(void);
|
||||
void urlconv_tofilename(char *dest, char *source, unsigned char maxlen);
|
||||
|
||||
#endif /* __URLCONV_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue