JasonRYu / mongoose

Automatically exported from code.google.com/p/mongoose
0 stars 0 forks source link

default value for document root is ignored #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set the default value for document root in 'known_options'
2. create a file 'index.html' with some text in your document root as 
specified in 1.
3. start mongoose and point your browser to http://hostname:portname/

What is the expected output? What do you see instead?
I expected to see the text in 'index.html'. But I got a directory dump of
the current working directory.

What version of the product are you using? On what operating system?
MONGOOSE_VERSION    "2.4"
OS Suse 11.0

Please provide any additional information below.
code change proposal (line 3633):
/* if document root is not set yet, set it to current working directory */
if (ctx->options[OPT_ROOT] == NULL) {
    ctx->options[OPT_ROOT] = getcwd(NULL, 0);
}

Greetings and Thanks for the cool web server!
Mario

Original issue reported on code.google.com by Mario.Kl...@googlemail.com on 22 Jan 2009 at 6:51

GoogleCodeExporter commented 9 years ago
Submitted, thanks!

Original comment by valenok on 2 Feb 2009 at 2:11