r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

BrianH
13-Oct-2006
[179]
I'd love if there were an LNS implementation built on UniServe. This 
would let you turn Cheyenne into a general purpose app server.
Pekr
13-Oct-2006
[180]
general? Rebol general,no? maybe XML-RPC would be interesting for 
non-rebol world, but it could be added too ....
BrianH
13-Oct-2006
[181x2]
I've been thinking of LNS syntax shims that would allow REBOL services 
to be called by non-REBOL clients.
Does Cheyenne have an option to limit which network adapters it will 
serve to? For example, I have 5 adapters on this computer (ethernet, 
wireless, 2 VMware, Hamachi), maybe 6 counting localhost, and I would 
like the web server to only be visible to the virtual adapters, not 
even opening a port on the physical ones.


I remember this being difficult in REBOL, that REBOL would always 
open server ports on all available adapters, so you would have to 
inspect the incoming connections and filter. Have you come up with 
a better workaround for this, or a way to do it properly?
Pekr
13-Oct-2006
[183]
IIRC via set-modes/get-modes, you can know what adapter is involved. 
I am afraid there is no other way how to prevent this. Opening a 
socket is OS thing imo, and I wonder if C socket functions allow 
you to choose your device?
BrianH
13-Oct-2006
[184]
They do, AFAIK. I do have the standard Windows firewall installed, 
but it would be better (lower overhead) to just not open the port 
on the wrong adapters in the first place.
Dockimbel
13-Oct-2006
[185]
It can be done at the C socket level, unfortunately, I don't know 
any way of doing that from REBOL.  I guess that's not supported in 
the current REBOL port!.
Graham
13-Oct-2006
[186x2]
Can Cheynne support Ajax ?
Does each http request spawn a new instance ?
Dockimbel
13-Oct-2006
[188x2]
Ajax is sending standard HTTP requests, so yes.
you mean a new REBOL process ?
Graham
13-Oct-2006
[190x3]
yes.
or uniserve task
Can RSP pages retreive content using async http and return them to 
the client?
Dockimbel
13-Oct-2006
[193x2]
HTTP requests for static ressource are handled in multiplexing mode 
by the main Cheyenne process. Only CGI or RSP can currently spawn 
a new process if there's no free process available to handle the 
job.
Async in RSP: there's nothing preventing that from being used.
Graham
13-Oct-2006
[195x2]
Good to confirm this
I haven't downloaded your latest versions yet .. is a console visible 
?
Dockimbel
13-Oct-2006
[197]
Only for the main process, console are hidden for bagckground processes.
Graham
13-Oct-2006
[198]
Can that be hidden as well to use Cheyenne as an embedded web server?
Dockimbel
13-Oct-2006
[199]
Of course, just add 'no-window to Cheyenne.r encap header.
Terry
13-Oct-2006
[200]
mod-rewrite module for powerful request URL transformations (without 
the regexp complexity!).

There's been some discussion around here on the future of .htaccess 
... the timing of this feature may be perfect.
Will
13-Oct-2006
[201x2]
You can find an alpha mod-rewrite here http://softinnov.org/cheyenne/blog.cgi
is is parse base, each rule consist of a match block!, a transform 
block! and a logic! to continue thru next rule or break
MikeL
14-Oct-2006
[203]
Doc... Have you thought about NTLM support for Cheyenne?
Oldes
14-Oct-2006
[204]
(maybe there should be max-width specified in the css for the code 
block in the blog)
Dockimbel
14-Oct-2006
[205]
Unfortunately, 'max-width is not supported by Internet Explorer.
Oldes
15-Oct-2006
[206x3]
but at least under rest of the browsers it would looks better (and 
with overflow: scroll)
(overflow: auto)
This is working for IE and FF and should be added to Carl's blog 
as well:

pre {font: bold 10pt "courier new", monospace, console; width: 630px; 
overflow: auto; background-color: #f0f0f0; padding: 16px; border: 
solid #c0c0c0 1px;}
Dockimbel
15-Oct-2006
[209]
Thanks for your code, I'll give it a try. Btw, IE has 85% market 
share (according to a recent article on osnews.com).
Oldes
15-Oct-2006
[210x3]
The problem with the code above is, that it's fixed with for all 
pre tags, but in the blog there are at least 2 widths - one in the 
article and one in the comments
so I should rather use something like width: 90%
But it's a little bit out of topic chat:-)
Dockimbel
15-Oct-2006
[213]
Right, but thanks anyway for your help.
Dockimbel
16-Oct-2006
[214]
NTLM support: I thought about supporting that, but it's currently 
quite low priority. It would rely on win32 API, so would only work 
with the Windows version of Cheyenne.
MikeL
16-Oct-2006
[215]
Doc,  I appreciate your time / work on this.  Just so I understand.... 
are you saying that the solution you would implement would only run 
on a Win machine and that solutions that run on other machines are 
not feasible  ... because they are basically cumbersome and unreliable? 
 e.g. http://drupal.org/node/44718And are schemes like NTLM Authorization 
Proxy Server unworkable?  refer http://www.geocities.com/rozmanov/ntlm/
    I can't see using Cheyenne in a work environment  unless it supports 
NTLM.
Terry
16-Oct-2006
[216]
Nenad, seems there was a major uniserve rewrite with cheyenne.. are 
things pretty much the same? How do you install a new service now?
Dockimbel
17-Oct-2006
[217x2]
Terry: UniServe hasn't been rewritten, there are just a few features 
and new events added. The service API is exactly the same as before. 
Remember that Cheyenne and UniServe are two different products. Cheyenne 
is just using UniServe as low level networking layer.
MikeL: I've implemeted a cheap solution by using the win32 API. Implementing 
NTLM natively in REBOL  require a significant amount of time, that 
I don't have currently, or in a near future. There are some non trivial 
algorithms to implement in REBOL like MD4 hashing. If required, I 
may work on such lib on a contract basis, else I don't think that 
I'll have time to implement that before next year. Maybe someone 
else in the REBOL community would have the time to do the job ?
MikeL
17-Oct-2006
[219]
Nenad, Thanks for the explanation.
Terry
18-Oct-2006
[220]
Nenad, I dropped my service into Cheyenne's uniserve / service folder 
and no go? Works fine with the older Uniserve.
Dockimbel
18-Oct-2006
[221x2]
If you're using cheyenne.r to try to start your service, that's logical 
: only the HTTPd service is loaded, see cheyenne.r source code. If 
you want to add your own service to cheyenne, add it to cheyenne.r. 
If you don't want cheyenne, just write your own launch script.
Erratum: cheyenne loads 2 services : HTTPd and Task-master.
Terry
28-Oct-2006
[223]
Any docs coming for Cheyenne?  How do Vhosts work?
Terry
3-Nov-2006
[224]
Hey Doc.. how much time will you be committing to Cheyenne?
Terry
6-Nov-2006
[225]
.. ( i guess i have my answer ;)
Graham
16-Nov-2006
[226]
Is this what you have to do SSL enable/wrap Cheynne ? http://www.stunnel.org/examples/https_windows.html
Maarten
17-Nov-2006
[227]
Yes
Graham
17-Nov-2006
[228]
I wonder if all of that can't be short circuited by just downloading 
binaries of openssl, creating the certificates, and then downloading 
the stunnel binaries.