Thanks for any help.
HelloI went through the online docs before posting, but didn't find the answers.As said in the Subject, I'd like to use Mongoose to run small web sites with support for Lua and SQLite:
- Can Mongoose be launched at boot time as a service? "Mongoose does not detach from terminal." says the docs
- What should file access rights be for CGI scripts? Is 500 OK?
- .htaccess: What is a realm? This doesn't work: ./mongoose-lua-sqlite -A .htpasswd 192.168.0.10 joe test -> joe:192.168.0.10:c8b1228323d9839b089a4ebd57c131cf -> 404 when typing login/password
- How to handle 404 instead of just displaying "404 Not Found"?
- How to log access/error? Even with "error_log_file mongoose.error.log" in mongoose.conf, no file is created when a 404 occurs
- docs/LuaSqlite.md doesn't mention Lua scripts with .mg.lua extension: Are HTML with embedded Lua code (.lp) still available in addition to Lua scripts with .mg.lua extension? Which way do you recommend?
- Any tips about how to handle HTML forms safely, and generally, about running Mongoose safely, including Lua scripting?
- Is using LuaRocks OK to install Lua modules and access them from Lua scripts in Mongoose?
Thanks for the infos.1. I can't either create an .htaccess file or have it work as planned (login refused):"./mongoose-lua-sqlite -A .htpasswd -auth_domain 192.168.0.10 joe test"ORmongoose.conf includes "auth_domain 192.168.0.10" and I ran "./mongoose-lua-sqlite -A .htpasswd joe test"
2. Is error_log_file deprecated?
3. So ".mg.lua" scripts must be moved to HTML + embedded .lp scripts?
Thanks but still no go (this is in a test lab, so no DNS server):
- Added server host to "hosts" file on client host: 192.168.0.10<TAB>srv
- Ran ./mongoose-lua-sqlite -A .htpasswd srv joe test
- Hit "http://srv:8080/mysecret": Doesn't pass authentication, and ends in 404