Author Topic: Application Server Users  (Read 16015 times)

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Application Server Users
« 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?

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: Application Server Users
« Reply #1 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.
« Last Edit: July 26, 2011, 11:12:19 AM by support »

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: Application Server Users
« Reply #2 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.
« Last Edit: July 26, 2011, 04:35:00 PM by support »

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: Application Server Users
« Reply #3 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?

« Last Edit: July 26, 2011, 11:15:47 PM by support »

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: Application Server Users
« Reply #4 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.

http://www.scriptbasic.org/forum/index.php/topic,112.0.html

Here is echo.bas running on sbhttpd as a proxy server.

http://www.northwestliving.info/home/echo.bas


John
« Last Edit: July 27, 2011, 01:34:36 AM by support »

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: Application Server Users
« Reply #5 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.


Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: Application Server Users
« Reply #6 on: July 29, 2011, 05:51:48 PM »
Code: Text
  1. ProxyPass /home/ http://127.0.0.1:8084/
  2. ProxyPassReverse /home/ http://127.0.0.1:8084/
  3.  

Code: Text
  1. servers (
  2.   server (
  3.     port 8084
  4.     ip "127.0.0.1"
  5.     protocol "http"
  6.    )
  7.   threads 1024
  8.   listenbacklog 2
  9.   home "/var/www/vhosts/northwestliving.info/httpdocs/home/"
  10.   proxyip 1
  11.  

This is what I'm using for the northwestliving.info site with sbhttpd.
« Last Edit: July 29, 2011, 10:00:28 PM by support »

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: Application Server Users
« Reply #7 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

« Last Edit: July 30, 2011, 09:53:15 AM by support »