ScriptBasic
February 05, 2012, 05:43:39 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Registration Disabled Send an e-mail to support @ scriptbasic.org to request a membership to this forum. (include desired forum name)
 
   Home   Wiki Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Application Server Users  (Read 2784 times)
support
Administrator
*****
Posts: 369


« on: February 04, 2008, 03: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?
Logged
support
Administrator
*****
Posts: 369


« 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 » Logged
support
Administrator
*****
Posts: 369


« 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 » Logged
support
Administrator
*****
Posts: 369


« 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 » Logged
RONB
Newbie
*
Posts: 30


« Reply #4 on: July 26, 2011, 09:50:18 PM »

I had another go at sbhttpd and have it working now. Here is my setup.
ubuntu 11 server tomcat6
scriptbasic sbhttpd server
dsl modem passing ports 8080-8888 to router
router virtual server 8080 to apache tomcat
router virtual server 8888 to sbhttpd

installed scriba-v2.1.1_i386.deb
had to install a few things that were needed by scriptbasic
had to make the /var/log/scriba directory
I used the default scriba unix conf file, but had to make a few changes.
the ($home) expression would not work, so changed them all to /var/log/scriba
changed the port from 8889 to 8888
removed the ip line
removed the ftp server section, will try it later
removed the sql section, will try it later

After making these changes I first tried it out local, 192,168.254.1/echo.bas and it worked.
Then I had it checked out by others on the web and it worked.

This server is being run on a ASUS EeePC 701, 4 gig digital drive and 1 gig memory. Ubuntu used the whole drive, 1/2 for system and 1/2 for cache. It used 512 meg memory for the system and the rest for swap.

You can try my sbhttp sever here:
http://rf.ddns.net/echo.bas




« Last Edit: August 09, 2011, 05:09:28 PM by RONB » Logged
support
Administrator
*****
Posts: 369


« Reply #5 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 » Logged
support
Administrator
*****
Posts: 369


« Reply #6 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.

Logged
support
Administrator
*****
Posts: 369


« Reply #7 on: July 29, 2011, 05:51:48 PM »

Code: (vhost.conf)
ProxyPass /home/ http://127.0.0.1:8084/
ProxyPassReverse /home/ http://127.0.0.1:8084/

Code: (basic.conf)
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 site with sbhttpd.
« Last Edit: July 29, 2011, 10:00:28 PM by support » Logged
support
Administrator
*****
Posts: 369


« Reply #8 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 » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!