View Single Post
  #3  
Old 02-08-2006, 04:29 PM
athanasius athanasius is offline
New Member
 
Join Date: Feb 2006
Posts: 9
Default Added context but still no success...

Mistwang - I have added a context as suggested with no luck. So far I have done the following:

1. Added a vhost "LiteSpeed"
2. Added an ExternalApp (Fast CGI App) to the vhost
3. Added a Context to the vhost with a URI of "/helloworld.fpl"


I get the following error:


2006-02-08 19:20:51.208 [DEBUG][*] New connection from 209.195.158.2:4827.
2006-02-08 19:20:51.208 [DEBUG][*] 1 connections accepted!
2006-02-08 19:20:51.213 [DEBUG] [209.195.158.2:4827-0] HttpIOLink::handleEvents() events=1!
2006-02-08 19:20:51.213 [DEBUG] [209.195.158.2:4827-0] HttpConnection::onReadEx(), state: 0!
2006-02-08 19:20:51.213 [DEBUG] [209.195.158.2:4827-0] readToHeaderBuf().
2006-02-08 19:20:51.213 [DEBUG] [209.195.158.2:4827-0] Read from client: 269
2006-02-08 19:20:51.213 [DEBUG] [209.195.158.2:4827-0] read 269 bytes to header buffer
2006-02-08 19:20:51.213 [DEBUG] [209.195.158.2:4827-0] processHeader() return 0, header state: 3.
2006-02-08 19:20:51.213 [DEBUG] [209.195.158.2:4827-0] readToHeaderBuf() return 0.
2006-02-08 19:20:51.213 [DEBUG] [209.195.158.2:4827-0#LiteSpeed] New request:
Method=[GET], URI=[/helloworld.fpl],
QueryString=[]
Content Length=0
2006-02-08 19:20:51.213 [DEBUG] [209.195.158.2:4827-0#LiteSpeed] Find context with URI: [/helloworld.fpl], location: [(null)]
2006-02-08 19:20:51.214 [INFO] [209.195.158.2:4827-0#LiteSpeed] Context [/helloworld.fpl] is not accessible: access denied.

2006-02-08 19:20:51.214 [DEBUG] [209.195.158.2:4827-0#LiteSpeed] processContextPath() return 24
2006-02-08 19:20:51.214 [DEBUG] [209.195.158.2:4827-0#LiteSpeed] processNewReq() return 24.
2006-02-08 19:20:51.214 [DEBUG] [209.195.158.2:4827-0#LiteSpeed] HttpConnection::sendHttpError(),code=403 Forbidden
2006-02-08 19:20:51.214 [DEBUG] [209.195.158.2:4827-0#LiteSpeed] HttpConnection::flush()!
2006-02-08 19:20:51.214 [DEBUG] [209.195.158.2:4827-0#LiteSpeed] Written to client: 572
2006-02-08 19:20:51.214 [DEBUG] [209.195.158.2:4827-0#LiteSpeed] HttpConnection::nextRequest()!
2006-02-08 19:20:56.129 [DEBUG] [209.195.158.2:4827-1] Keep-alive timeout, close!
2006-02-08 19:20:56.129 [DEBUG] [209.195.158.2:4827-1] Close socket ...



Here is my vhcof.xml

<?xml version="1.0" encoding="UTF-8"?>
<virtualHostConfig>
<docRoot>$VH_ROOT/www</docRoot>
<logging>
<log>
<useServer>0</useServer>
<fileName>$VH_ROOT/lsws-logs/error.log</fileName>
<logLevel>DEBUG</logLevel>
</log>
<accessLog>
<useServer>0</useServer>
<fileName>$VH_ROOT/lsws-logs/access.log</fileName>
</accessLog>
</logging>
<index>
<useServer>1</useServer>
</index>
<scriptHandlerList>
<scriptHandler>
<suffix>cgi</suffix>
<type>cgi</type>
<handler>cgi</handler>
</scriptHandler>
<scriptHandler>
<suffix>fpl</suffix>
<type>fcgi</type>
<handler>MyfastCGI</handler>
</scriptHandler>
</scriptHandlerList>
<extProcessorList>
<extProcessor>
<type>fcgi</type>
<name>MyfastCGI</name>
<address>UDS://home/foo/lsws-tmp/fastcgi.sock</address>
<maxConns>200</maxConns>
<initTimeout>15</initTimeout>
<retryTimeout>15</retryTimeout>
<persistConn>1</persistConn>
<respBuffer>0</respBuffer>
<autoStart>1</autoStart>
</extProcessor>
</extProcessorList>
<contextList>
<context>
<type>fcgi</type>
<uri>/helloworld.fpl</uri>
<handler>MyfastCGI</handler>
<accessControl>
</accessControl>
<addDefaultCharset>off</addDefaultCharset>
</context>
<context>
<type>fcgi</type>
<uri>/pl/pages</uri>
<handler>MyfastCGI</handler>
<accessControl>
</accessControl>
<addDefaultCharset>off</addDefaultCharset>
</context>
</contextList>
</virtualHostConfig>


Any help would be appreciated.

Thanks!
Reply With Quote