World: r3wp
[!Cheyenne] Discussions about the Cheyenne Web Server
older newer | first last |
Janko 30-Jul-2010 [8663] | Very cool Oldes! Thanks a lot! (and cool galery on that page) |
Oldes 30-Jul-2010 [8664x2] | Here is newer version - http://box.lebeda.ws/~hmm/rebol/imagick-min.r |
in this version you can see crop-images function | |
Graham 2-Aug-2010 [8666] | If I have a domain like rebol.com, how do I make it so that a.rebol.com b.rebol.com etc ... work so that a.rebol.com etc appears in the browser address bar. What I want to do is create virtual domains .... |
Maxim 2-Aug-2010 [8667x2] | there is an example of a virtual domain setup in the config file provided in cheyenne. |
(its commented out IIRC) | |
Graham 2-Aug-2010 [8669x2] | I know how to setup httpd.cfg .. just unclear as to how I get the domain |
eg. abc.rebol.com is not found | |
Maxim 2-Aug-2010 [8671] | well the browser needs to request it. or you need to redirect to it. |
Graham 2-Aug-2010 [8672x2] | If I setup a subdomain abc.rebol.com, I can redirect it to a page on rebol.com but the address bar changes |
so if I setup the subdomain to point to www.rebol.com/abc/index.html .. then that's what shows. I want it to display abc.rebol.com/index.html | |
Maxim 2-Aug-2010 [8674x3] | ah... you can setup all subdomains to use the same root dirs, but then the domain name is different in your request object. |
but if you are only serving static pages, its not an issue. | |
if you are doing cgi or rsp,, then just be mindfull that several domains share the same root. | |
Graham 2-Aug-2010 [8677x3] | Ah... I think I want domain forwarding with masking |
Godaddy allows you to create up to 99 subdomains for each domain, and if I choose forwarding with masking, then the browser redirects but the address bar remains unchanged | |
now hopefully I can use this to create virtual domains in Cheyenne | |
Oldes 2-Aug-2010 [8680x2] | First of all you must add DNS A records to point to your IP adress. And then setup your server (Cheyenne, Apache, Nginx..) to resolve the full subdomain.domain names. |
Don't do forwarding. | |
Graham 2-Aug-2010 [8682] | thanks .. that what I just discovered too. |
Kaj 2-Aug-2010 [8683x2] | I think you want multiple subdomains, one for each user, and you can simplify that by defining one catch-all IP number in DNS. Then define all the virtual hosts in Cheyenne. You do have to add every subdomain to Cheyenne, but this way you don't have to maintain DNS for each |
Not sure if GoDaddy allows a catch-all, though, if it has a limit of 99 | |
Will 2-Aug-2010 [8685x2] | u can have a catch all on godaddy, i 's a onliner 8-) |
if u want something nicer, multicast dns, and a superfast and well thought out control panel, check out dnsmadeeasy.com | |
Graham 2-Aug-2010 [8687x2] | What's the oneliner? Defining the sub domains as DNS A records doesn't work .... |
Ah... I see it now. If you add a A record of "*", it should direct everything to the stipulated IP address | |
Will 2-Aug-2010 [8689] | right on 8-) |
Graham 3-Aug-2010 [8690] | Since Cheyenne can not run as a service under Win32, what are people using to restart Cheyenne after a reboot of the OS? |
sqlab 3-Aug-2010 [8691] | The encapped version of Cheyenne can run as a service |
Graham 3-Aug-2010 [8692] | I should try again ... encapped with encmdview doesn't work ... but I see that doc has said that enpro should work ... |
sqlab 3-Aug-2010 [8693] | I used encmd |
Graham 3-Aug-2010 [8694x3] | I used encmd now ... but it still appears in the system tray. I right click on the system tray icon, and use "run as a service" and then it stops running |
and disappears from the running processes | |
hmm.. crash log says it is trying to run 'alert 3-Aug-2010/21:08:06+12:00 : make object! [ code: 312 type: 'script id: 'cannot-use arg1: 'path arg2: 'none! arg3: none near: [svs: system/view/screen-face svs/pane: reduce [ make face [ offset: (system/view/screen-face/size - 200x50) / 2 size: 400x100 pane: make face [ size: 380x80 offset: 0x24 text: msg ] ] ] ] where: 'alert ] | |
Oldes 3-Aug-2010 [8697] | not tested, but if you want to start something on windows start up, just add link into this folder> C:\Documents and Settings\<%your-user-name%>\Start Menu\Programs\Startup (if you have english windows) The folder names are localized so it will look different in other languages) |
Graham 3-Aug-2010 [8698x6] | This is for windows 2003 .. I suspect that the user needs to login for startup links to work? |
Found this in misc/service.r ; TBD: replace alert function by a call to MessageBox win32 API (would work with both Core&View) alert: func [msg /local svs][ svs: system/view/screen-face svs/pane: reduce [ make face [ offset: (system/view/screen-face/size - 200x50) / 2 size: 400x100 pane: make face [ size: 380x80 offset: 0x24 text: msg ] ] ] show svs open-events wait [] clear svs/pane show svs ] | |
So, looks like doc hasn't got round to replacing this code which is called later on by this alert "ERROR : installing a service requires Administrator rights!" | |
ok, so get it running as a service you need to run as administrator first, and then use the "run as service" menu | |
Well, I get the "congratulations you're running Cheyenne" page .. but nothing else is working | |
ie. the cgi, rsp and rsp web app are not | |
Graham 4-Aug-2010 [8704] | I wonder how slow it might be to use a coding style where each page is represented by a Rebol object, and to display the page back to the browser client, you have a render function that iteractively calls the render function of each element of the object. the object initializes by reading the session and request objects when it is first instantiated |
Endo 5-Aug-2010 [8705] | is there any work about running encrypted rsp pages on cheyenne? just like zend encoder for php? |
Graham 5-Aug-2010 [8706] | what's an encrypted page? |
Kaj 5-Aug-2010 [8707] | The performance of an object compositing system would depend mostly on how each object performs in delivering its rendering. If each object is fast enough, the composition is doable |
Graham 5-Aug-2010 [8708] | This who process could be controlled by a VID dialect that creates the object that then generates the page |
Kaj 5-Aug-2010 [8709x2] | Yep |
My web framework works along those lines, but it doesn't use objects in that place | |
Graham 5-Aug-2010 [8711] | I'd imagine it could be quite the killer app .. a dialect that generates a web page for you switching between YUI, jQuery or whatever JS framework |
Kaj 5-Aug-2010 [8712] | That's more in the direction of Weblocks |
older newer | first last |