World: r3wp
[!Cheyenne] Discussions about the Cheyenne Web Server
older newer | first last |
Dockimbel 2-May-2011 [10151] | -w as REBOL option (to not confuse with Cheyenne's -w option). |
onetom 2-May-2011 [10152] | sure |
Dockimbel 2-May-2011 [10153] | Here is the SDK documentation about encap headers: http://www.rebol.com/docs/sdk/encap.html#section-8 |
onetom 2-May-2011 [10154x2] | which means im not supposed to hack cheyenne (easily) unless i buy the SDK and learn encap? because in turn that's what it means not to include this specific "trick" into cheyenne's documentation |
and since im running it with the plain rebol/core, i wouldn't have thought that encap header might be relevant | |
Dockimbel 2-May-2011 [10156x2] | You can hack Cheyenne as much as you want. The SDK is only required if you want to build a binary version of Cheyenne, which is not mandatory for using Cheyenne, even in production. |
The encap header is only revelant if you build a binary, it is ignored if run from sources. | |
onetom 2-May-2011 [10158] | aahha... i was using the -w as usual, that's why i didn't see any output when i was starting cheyenne from source. normally i use -w, otherwise pipeing the output doesn't work properly. okay, everything makes more sense now. |
Dockimbel 2-May-2011 [10159] | Good. :-) |
Kaj 2-May-2011 [10160] | The binary is mandatory for using Library |
GrahamC 2-May-2011 [10161] | command/core has library |
Kaj 2-May-2011 [10162] | Most people don't have Command/Core |
Maxim 2-May-2011 [10163x2] | nowadays, I think command is only available via the sdk, no? |
should the hosts be configured via IP addresses? it seems php has issues using localhost as a domain name. | |
onetom 2-May-2011 [10165] | ## Error in [conf-parser] : Error in conf file at: ! was caused by writing a debug word outside of a vhost definition... |
Maxim 2-May-2011 [10166] | should = "should it be possible to configure host via IP addresses" ? |
onetom 2-May-2011 [10167] | u mean vhost? the docs says it is possible. but u can't listen on a specific address only -- it's a rebol limitation |
Maxim 2-May-2011 [10168] | yeah, but it seems php prefers using 127.0.0.1 instead of localhost, but my client is reporting cheyenne errors (I haven't tested it yet)... just want to know if its possible first. |
Dockimbel 2-May-2011 [10169x2] | Declaring a vhost using an IP address: yes and it is documented in the wiki. |
onetom: thanks for reporting the cause, I will test that locally and see if I can improve the error message for such cases. | |
onetom 2-May-2011 [10171] | doc: it's not a big problem. red is a higher priority :) |
Dockimbel 2-May-2011 [10172] | Sure, but I can multiplex with small Cheyenne fixes as long as it doesn't take me too much time. |
Maxim 2-May-2011 [10173] | thx |
onetom 2-May-2011 [10174x3] | hmm... cheyenne binary and the source works differently w the same configfile. $ cheyenne --version 0.9.20.129 WORKS latest source doesn't work with the following config: modules [ internal extapp static action rsp alias ] globals [ listen [8080] bind RSP to [ .r ] ] guan-huat [ debug root-dir %./ alias "/docs" %jsondb/to-json.r ] im testing w $ curl http://guan-huat:8080/docs/test/1 |
bind-extern makes no difference | |
oh, the problem is im getting a 404 if i run the source version of cheyenne | |
Dockimbel 2-May-2011 [10177x3] | Are you using sources v0.9.20.129 too? |
Hmm, shouldn't make much differences between revision 129 and latest 135... | |
You should search in the Cheyenne console logs for "[HTTPd] Translated file:" to see what file Cheyenne is trying to read. That should give you a clue about what is causing the difference. | |
onetom 2-May-2011 [10180x5] | no, v0.9.20.129 is binary |
Translated file: %./jsondb/to-json.r in case of the source version; so there is no differnece there. | |
http://piratepad.net/KkvkZ9AtME i put the correct and the incorrect logs here | |
i pasted the command lines too | |
it works if i copy over my stuff into cheyenne's dir and start cheyenne.r from there | |
Dockimbel 2-May-2011 [10185x3] | I guess Cheyenne should be able to figure out where are his own files if launched from another folder. I need to setup a test configuration on my linux box to investigate such case. |
But tomorrow, too late now here. ;-) | |
Got you email, thanks. | |
onetom 2-May-2011 [10188x2] | i thank u. |
it's 6:34 here, but i slept most of the day coz im close to having pneumonia again... | |
onetom 3-May-2011 [10190x2] | hmm... sessions are not persisted anywhere? |
anyone wrote some memcached or tmp file storage for sessions? | |
Dockimbel 3-May-2011 [10192] | They are persisted on disk if you specify in globals section of config file: persist [sessions] |
onetom 3-May-2011 [10193] | noted here: http://cheyenne-server.org/wiki/Config/Persist is it ok, or there is a better place for it? |
Dockimbel 3-May-2011 [10194] | That is the right place, thanks! |
onetom 3-May-2011 [10195x2] | how can i implement a login form without sending the password in clear text? |
should i ask for digest authorization? | |
Dockimbel 3-May-2011 [10197] | switch to HTTPS. |
onetom 3-May-2011 [10198x2] | i can't find the "switch" :) ... i hate this cert and crl based pki crap... |
any drawback of using http digest, beside not being able to provide a nice login page? | |
Dockimbel 3-May-2011 [10200] | Not AFAIK. |
older newer | first last |