Please make sure you're using the latest release.

On Tue, Jan 14, 2014 at 5:10 PM, Gilles <[email protected]> wrote:

> Hello
>
> I followed the example <http://cesanta.com/#docs,LuaSqlite.md> by
> creating test.lp in the document_root directory:
> HTTP/1.0 200 OK
> Content-Type: text/plain
>
> <?
>         print("Hi!")
> ?>
>
> But when called from the browser, Mongoose displays the source of the
> script instead of running it.
>
> I also tried this, same result:
> <? mg.write('HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n') ?>
> <html><body>
>   <span>Today is:</span> <? mg.write(os.date("%A")) ?>
> </body></html>
>
> Do I need to add something else to mongoose.conf to tell it to consider
> "*.lp" as Lua scripts?
> enable_directory_listing no
> auth_domain srv
> document_root /var/local/mongoose/www
> hide_files_patterns .htaccess
> run_as_user nobody
> #NO NEED FOR LUA cgi_pattern /var/local/mongoose/cgi-bin/*.cgi
>
> Thank you.
>
> --
> 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