|
Pages: [1]
|
 |
|
Author
|
Topic: Tiny web server (Read 299 times)
|
|
leke
|
I'm running Linux and have just grabbed the 2.7.6.4.2 core build. I wanted to see if I could do this on my home computer. http://www.rebol.net/cookbook/recipes/0057.htmlThe script runs (if the process stick spinning is a good thing), but i couldn't get a test page running. I created an index.htm and pointed my browser to http://my-ip-address/index.htm (correct path defined in the script). Is this the correct setup or do I need to do something more? Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
btiffin
|
Try browsing http://localhost see if that has any effect. webserver.r (the cookbook example is in rebol.org as webserver.r) works for 1.3.2 and 2.7.6 here, but it's Windows. You may be getting blocked by your firewall - one of a few hundreds of things this could be...  Cheers, Brian
|
|
|
|
|
Logged
|
|
|
|
|
leke
|
Thanks, I've already tried the localhost, 127.0.0.1 and firewall thing. If all I need is rebol, the web-server.r script and a web directory, I'll figure the rest out. Oh, but one thing: >> system/network/host-address == 127.0.1.1 >> Shouldn't that be my IP-Address? >> system/network/host == "leke-desktop" >> Seems ok.
|
|
|
|
|
Logged
|
|
|
|
|
fhein
|
When you try to access localhost, do you get any text in the Rebol window?
|
|
|
|
|
Logged
|
|
|
|
|
leke
|
>> read http://localhost/ connecting to: localhost ** Access Error: Cannot connect to localhost ** Where: open-proto ** Near: read http://localhost/ >> read http://127.0.0.1 connecting to: 127.0.0.1 ** Access Error: Cannot connect to 127.0.0.1 ** Where: open-proto ** Near: read http://127.0.0.1 >> read http://127.0.1.1 connecting to: 127.0.1.1 ** Access Error: Cannot connect to 127.0.1.1 ** Where: open-proto ** Near: read http://127.0.1.1 >> read http://google.com connecting to: google.com connecting to: www.google.com connecting to: www.google.fi == {<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Google</title><style>body,td,a,p,.h{... >>
Edit: Oh, sorry i see what you mean now. No the busy indicator is constantly spinning. >> do %/home/leke/dev/rebol/web-server.r Script: "Tiny Web Server" (none) / (spins) I think this means its running and it stay in this state when i'm trying to do the tests in a browser.
|
|
|
|
« Last Edit: March 30, 2008, 04:40:10 AM by leke »
|
Logged
|
|
|
|
|
leke
|
|
|
|
|
« Last Edit: March 30, 2008, 03:23:10 PM by leke »
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |
News: 01-09-08 Alpha version of REBOL 3 has been released!
2187 Posts in 576 Topics by 1615 Members
Latest Member: Uncellhoolf
|