Please try this pre-release binary
https://code.google.com/p/mongoose/downloads/detail?name=mongoose.03.01.2013.exe&can=2&q=#makechanges


On Fri, Jan 3, 2014 at 3:34 PM, Sergey Lyubka <[email protected]> wrote:

> Yeah, cause when lua script runs, it uses processes' current working
> directory.
> I think it would be OK to make Mongoose executable to change it's working
> directory to document root. It wouldn't be OK for the library, but for the
> executable
> it is appropriate IMO.
>
>
> On Fri, Jan 3, 2014 at 12:30 PM, Phuoc Can Hua <[email protected]>wrote:
>
>> If I run mongoose in the current directory an put the main.lp in a lower
>> directory (e.g. test) I have to set the document_root to test. This is
>> obvious.
>> So I can access it with: localhost:8080/main.lp
>> But if I use the relative path as below it doesn't work.
>> <?
>>     local f=io.open('..\\mongoose-4.1.exe',"r")
>>     if f~=nil
>>     then
>>     io.close(f)
>>     mg.write('FOUND\n')
>>     else
>>     mg.write('NOT FOUND\n')
>>     end
>> ?>
>>
>> It works if I change it to '.\\mongoose-4.1.exe'. I'm surprised that
>> it's not referring to the document_root, but the location where mongoose
>> was started.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "mongoose-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/mongoose-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to