Support => General Discussions => Topic started by: Support on February 04, 2008, 02:52:47 AM
Title: Application Server Users
Post by: Support on February 04, 2008, 02:52:47 AM
Forum Members,
I'm trying to get a head count of the ScriptBasic application server (sbhttpd) users. If you have an application server running, please reply and share your experience using it.
If your using scriba (command line interpreter) for your CGI scripts, let us know as well.
Thanks !
John
P.S.
Was the CGI programming tutorial or the explanation of how to setup the application server of help to anyone?
Title: Re: Application Server Users
Post by: Support on July 26, 2011, 10:47:32 AM
That's good to hear that you got your sbhttpd server running. Are you using it as a proxy server with Apache? The sbhttpd server doesn't serve up images (only Basic CGI scripts) so running as a proxy to handle this, security and load leveling is the best method. (what Apache does best)
Make sure you undef the session array returned after checking for expired sessions.
Keep us in the loop with your progress.
John
P.S.
The IP you posted is for a local intranet and isn't visible over the web.
Title: Re: Application Server Users
Post by: Support on July 26, 2011, 04:32:49 PM
Your URL's are still pointing to my 192.168.... local network.
I have a VPS server at a data center I host the ScriptBsic and a couple other open source Basic projects on. I have used NO-IP as a DNS service in the past when I was running on Windows and wanted to test sbhttpd.
Sorry about the use dbg line in echo.bas. I must have forgot to remove it when I was testing the remote debugger.
Title: Re: Application Server Users
Post by: Support on July 26, 2011, 08:50:11 PM
It is still trying to connect to 192.168.0.101 as the IP. (pointing to my local intranet, not yours)
Are you running sbhttpd as a proxy or standalone?
Title: Re: Application Server Users
Post by: Support on July 26, 2011, 10:17:19 PM
Ron,
Maybe this thread will help you get your sbhttpd server going as a proxy with Apache.
Here is echo.bas running on sbhttpd as a proxy server.
http://www.northwestliving.info/home/echo.bas
John
Title: Re: Application Server Users
Post by: Support on July 29, 2011, 03:32:48 PM
I don't think this is a sbhttpd config issue. I would be seeing an error 500 from Apache if there were issue with SB. I can't see your Apache server even with trying port :8080 to override the port 80 default.
Title: Re: Application Server Users
Post by: Support on July 29, 2011, 05:51:48 PM
Code: Text
ProxyPass /home/ http://127.0.0.1:8084/
ProxyPassReverse /home/ http://127.0.0.1:8084/
Code: Text
servers (
server (
port 8084
ip "127.0.0.1"
protocol "http"
)
threads 1024
listenbacklog 2
home "/var/www/vhosts/northwestliving.info/httpdocs/home/"
proxyip 1
This is what I'm using for the northwestliving.info (http://www.northwestliving.info/home/echo.bas) site with sbhttpd.
Title: Re: Application Server Users
Post by: Support on July 29, 2011, 09:26:40 PM
The proxyip determines if sbhttpd stands on it's own or in Apache's shadow.
I would use sbhttpd standalone as an application server on a intra-net. If your going to expose your site to the world, Apache is great for handling different connection speeds, (load leveling) the security layer and media delivery.
Quote
I used scriba -k scriba.conf.unix.lsp when I first started to set sbhttpd up to get a clean scriba.conf.
Create a text version of your current scriba/sbhttpd binary configuration file. scriba -D > basic.conf.text
Create a new binary format configuration file from your edited text version. scriba -k basic.conf.txt