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

Maxim
31-May-2009
[5061x3]
if you had log option and console option within the default config 
file, (commented out or not) then users choose what they want.
my client uses the console for real-time status checking... using 
remote desktop and just noticing if the client isn't serving stuff 
anymore... but the logs then allow you unravel what led to that problem.
ooops   that would be   :     ... noticing if *cheyenne* isn't serving 
...
Robert
1-Jun-2009
[5064]
response/redirect: This doesn't seem to work for me. Nothing happens... 
Is there a way how I can check what's going on?
Dockimbel
1-Jun-2009
[5065x2]
Max: I agree the main issue is not having config options documented. 
About the current logging rules, I've always found that's way handier 
to pass command-line options than having to edit a config file. I'll 
see in the next version how I can improve that. 


Btw, I recommend running Cheyenne as encapped binary on production 
servers, it's simplier to handle (especially on Unix) and more secure 
(you can't corrupt some vital source file).
Response/redirect: run Cheyenne in verbose mode using -vvv command 
line switch, to see what's wrong. You've probably passed a bad URL 
(see RSP API doc for examples).
amacleod
5-Jun-2009
[5067x4]
Would a web hop interfere with virtual hosting?


I using a webhop to bring a domain through port 81 due to restrictions 
on 80.

It works on apache but I could not get it up on cheyenne...
Actually I can't get it working directly either...
If I got a virtual host:
mysite.com [
	root-dir %/www/mysite/		; documents root directory
	default [%index.html %index.rsp %index.php]			; default files
]

does it matter if i'm trying to reach it through port 83 with mysite:83

I keep getting the default page
I know in apache "virtualhost" commnad needs to be uncommented...I 
do not see anything else in the config file that idicates vhosting..
Maxim
5-Jun-2009
[5071]
did you set the port cheyenne listens to?
Maxim
6-Jun-2009
[5072]
in the httpd.cfg...

listen [83]


I'm using cheyenne on port 81 since I also have apache on my system 
and it works.

the url will be http://mysite.com:81/index.html 

not using vhost though.
Graham
6-Jun-2009
[5073x2]
vhost is for running more than one Cheyenne site on the same IP address 
?
I presume that all vhosts run on the same port ..
Maxim
6-Jun-2009
[5075]
yes vhosts redirect different sites to different roots, by matching 
the domain name.
amacleod
6-Jun-2009
[5076x2]
Yes its listening to port 83 and I get the default web page (Cheyenne 
test page for now)

If I URL to the "mysite" dir (www.defaultsite.com/mysite) I  get 
vhost index page...
Would use of subdomains be a the problem>>>  mysite.dyndns.com
Kaj
6-Jun-2009
[5078]
No, but are you sure you have entered the dyndns.com domain in the 
vhost definition?
amacleod
6-Jun-2009
[5079x2]
mysite.selfip.com [
	root-dir %/www/mysite/		; documents root directory
	default [%index.html %index.rsp %index.php]			; default files
]
Just as it is above...
it works for apache on port 82
Kaj
6-Jun-2009
[5081]
selfip.com is not dyndns.com
amacleod
6-Jun-2009
[5082]
I used dyndns as an example...sorry for the confusion...selfip.com 
is one of the domains dyndns offers..
Kaj
7-Jun-2009
[5083]
I have no problems with subdomains, but maybe it has to do with the 
dynamic DNS
amacleod
8-Jun-2009
[5084]
Still cannont get vhosts working:

mysite.selfip.com [
	root-dir %www/mysite	; documents root directory
	default [%index.html %index.rsp %index.php]			; default files
]

if I change my default root-dir to that above I get the corresponding 
index page for that directory...it just does not seem to reconize 
the vhost url
Kaj
9-Jun-2009
[5085x2]
Does dyndns support subdomains?
The DNS needs to be configured to resolve subdomains to your IP number
amacleod
9-Jun-2009
[5087]
It works with apache..does Cheyenne use a different method?
Oldes
9-Jun-2009
[5088]
linux or windows?
amacleod
9-Jun-2009
[5089]
windows
Oldes
9-Jun-2009
[5090x2]
what do you have in hosts file?
WINDOWS\system32\drivers\etc\
amacleod
9-Jun-2009
[5092]
I have no reference to it...
just localhost
and a bunch added by spybot
Oldes
9-Jun-2009
[5093]
why should spybot add something into this file?
Maxim
9-Jun-2009
[5094x3]
it redirects dns searches to nowhere  :-)
i don't know about spybot, but faking hosts entries is a good way 
to prevent trojans from calling home  ;-)
and if they are set to local host, then you can even trap them using 
a service expecting known ports.
Oldes
9-Jun-2009
[5097x2]
ah so... clever:)
anyway... I forgot that amacleod needs the virtual working from outside 
so the hosts file probablz is not the right file to look at
amacleod
9-Jun-2009
[5099]
I'll have a static ip by next week so I hope that solves this issue 
for me..
Dockimbel
10-Jun-2009
[5100]
Amacleod: did you tried Apache and Cheyenne using same server port?
amacleod
10-Jun-2009
[5101]
no, doc apache is on 82...cheyenne is on port 81 on the server and 
i tried 83 on y other computer..
iI reaching the default page..just not getting vhosts dir
Robert
12-Jun-2009
[5102x2]
I have a problem, that after some running time Cheyenne seems to 
get into an unstable state and my REST shopping-cart isn't working 
any longer. I got this error in the trace.log, which seems to be 
Cheyenne internal:


5/6-10:09:48.142823-## Error in [task-handler-40014] : Make object! 
[                                                                
                 
    code: 501                                  
                                                                 
                                      
    type: 'access         
                                                                 
                                                           
    id: 
'not-open                                                        
                                                                 
            
    arg1: "Port"                                    
                                                                 
                                 
    arg2: none                 
                                                                 
                                                      
    arg3: 
none                                                             
                                                                 
          
    near: [parse/all current: fourth entry [          
                                                                 
                               
            any [                
                                                                 
                                                    
            
    end break                                                    
                                                                 
        
                | "#[" copy value to #"]" skip (        
                                                                 
                             
                    append out reform 
[                                                                
                                               
                 
       " prin any [pick cat"                                     
                                                                 
   
                        locale/id? value                     
                                                                 
                        
                        mold value #"]" 
                                                                 
                                             
                   
 ]                                                               
                                                                 
 
                )                                              
                                                                 
                      
                | "<%" [#"=" (append out " 
prin ") | none]                                                  
                                          
                copy value 
[to "%>" | none] 2 skip (                                        
                                                          
      
              if value [repend out [value #" "]]                 
                                                                 
              
                )                                 
                                                                 
                                   
                | s: copy value 
[any [e: "<%" :e break | e: "#[" :e break | skip]] e: (          
                                                     
           
         append out reform [" txt" index? s offset? s e #" "]    
                                                                 
         
                )                                      
                                                                 
                              
            ]                     
                                                                 
                                                   
        ]]   
                                                                 
                                                                 
       
    where: 'confirm                                      
                                                                 
                            
] !                                 
                                                                 
                                                 
5/6-23:01:46.501455-## 
Error in [task-handler-40014] : Make object! [                   
                                                              
  
  code: 501                                                      
                                                                 
                  
    type: 'access                             
                                                                 
                                       
    id: 'not-open        
                                                                 
                                                            
    
arg1: "Port"                                                     
                                                                 
                
    arg2: none                                  
                                                                 
                                     
    arg3: none             
                                                                 
                                                          
    near: 
[unless no-lang [                                                
                                                                 
          
            id: locale/lang                           
                                                                 
                               
            locale/set-default-lang 
                                                                 
                                                 
        ]      
                                                                 
                                                                 
     
        out: make                                          
                                                                 
                          
    ]                                 
                                                                 
                                               
    where: 'confirm 
                                                                 
                                                                 

] !
Any idea what's going on? I could install a CRON job to killall instances 
and restart Cheyenne every 24h but IMO that shouldn't be the case.
Graham
12-Jun-2009
[5104x2]
What sort of load do you have on your server?
Is it a rsp problem?
Janko
12-Jun-2009
[5106]
I have cheyenne (previous version) running 2 sites with moderate 
load for 2 months on some VPS and I never needed to reset it.. onother 
VPS I have the latest version running for about amonth too
Robert
12-Jun-2009
[5107x3]
Mostly nothing. Cheyenne is working as a reverse proxy and just servers 
an RSP file.
So, the load is really low couple requests a day.
(At the moment)
Janko
12-Jun-2009
[5110]
probably some "kind of request" is making it problems..  do you have 
any special types .. because you mention REST (PUT DELETE maybe?)