Page 1 of 1

Using sbmongoose without ide spiderbasic.

Posted: Sun Jan 08, 2023 9:03 am
by useful
How do I set up sbmongoose to use on my own vps?

Re: Using sbmongoose without ide spiderbasic.

Posted: Sun Jan 08, 2023 9:45 am
by useful
Can we hope that at some point there will be more documentation on sbmongoose?
And under what license is it released?
In the meantime, the first successful experiment:
d:\websrv>sbmongoose -document_root d:\websrv
Mongoose web server v.4.2 started on port(s) 8080 with web root [d:\websrv]
==========
http://127.0.0.1:8080/[app name sb].html OK!!!
p.s. in d:\websrv\lib240\ <- ~Libraries\javascript\
==========
d:\websrv>sbmongoose -h
Mongoose version 4.2 (c) Sergey Lyubka, built on Nov 30 2022
Usage:
mongoose -A <htpasswd_file> <realm> <user> <passwd>
mongoose [config_file]
mongoose [-option value ...]

OPTIONS:
-cgi_pattern **.cgi$|**.pl$|**.php$
-cgi_environment <empty>
-put_delete_auth_file <empty>
-cgi_interpreter <empty>
-protect_uri <empty>
-authentication_domain mydomain.com
-ssi_pattern **.shtml$|**.shtm$
-throttle <empty>
-access_log_file <empty>
-enable_directory_listing yes
-error_log_file <empty>
-global_auth_file <empty>
-index_files index.html,index.htm,index.cgi,index.shtml,index.php,index.lp
-enable_keep_alive no
-access_control_list <empty>
-extra_mime_types <empty>
-listening_ports 8080
-document_root <empty>
-ssl_certificate <empty>
-num_threads 50
-run_as_user <empty>
-url_rewrite_patterns <empty>
-hide_files_patterns <empty>
-request_timeout_ms 30000
-spiderbasic_root <empty>
===========================
p.s. https://github.com/jaz303/mongoose-mit/ ... rManual.md

Re: Using sbmongoose without ide spiderbasic.

Posted: Sun Jan 08, 2023 9:53 am
by plouf
But why you need sbmongoose and not mongoose or any other of hundrend of free webservers out there

Re: Using sbmongoose without ide spiderbasic.

Posted: Sun Jan 08, 2023 10:06 am
by useful
Because it was Fred's choice, and I've trusted his choice for over ten years. !!! :D :D :D

Re: Using sbmongoose without ide spiderbasic.

Posted: Sun Jan 08, 2023 11:01 am
by plouf
Consider that "sb"mobgoose is probably a cut down version of mongoose

At any case it a limited capabilies server since its a embedded better use a another one more "full" like apache,ngix or (for me easiest) abyss
Aming other stuff you will have sql/php/authorization ......

Re: Using sbmongoose without ide spiderbasic.

Posted: Sun Jan 08, 2023 11:33 am
by useful
plouf wrote: Sun Jan 08, 2023 11:01 am Consider that "sb"mobgoose is probably a cut down version of mongoose
...
I understand this very well.
But it seems to me that for SB the use of mongoose, taking into account the features taken into account by the author in sbmongoose would be appropriate not only in development but also in subsequent operation.

Re: Using sbmongoose without ide spiderbasic.

Posted: Fri Jan 13, 2023 5:01 am
by useful
I'm just going to leave it here.
https://github.com/civetweb/civetweb/releases/tag/v1.15

p.s. Unlike mongoose, civetweb is licensed by MIT

Re: Using sbmongoose without ide spiderbasic.

Posted: Wed Mar 08, 2023 10:34 am
by Fred
sbmongoose is only intended to be used by the IDE and not shipped with your apps. You should use another webserver for this.

Re: Using sbmongoose without ide spiderbasic.

Posted: Wed Mar 08, 2023 11:57 am
by useful
But it works fine for me spiderbasic-app+sbmongoose+purebasic-cgi.
At least at the debugging stage.
Am I violating some point in the license?

Re: Using sbmongoose without ide spiderbasic.

Posted: Wed Mar 08, 2023 12:20 pm
by Fred
The version we use is GPL license, so it needs to stay in a separate executable. It's a custom built, and very old (2013) so it's not tested against security issues and shouldn't be used in production.