Ji Dong
|
slinger exec cmd can not find directory
|
Ji Dong
09/17/2009 7:42 AM
post38141
|
slinger exec cmd can not find directory
Hi, I have come across some strange problem when use slinger web server.
I use:
export HTTPD_ROOT_DOC=index.shtml
export HTTPD_ROOT_DIR=/fs/flash/httpd/web
export HTTPD_SCRIPTALIAS=/fs/flash/httpd/cgi-bin
slinger -e -s &
to start web server
I have index.shtml in =/fs/flash/httpd/web
and a binary called webtest in =/fs/flash/httpd/cgi-bin
everything seems fine till now, I can visit index.shtml as default.
in the index.shtml
if I code as:
<!--#exec cgi="webtest " -->
it will display the result as I expected, however it could not handle even a extra space <!--#exec cgi="webtest " -->
will not display anything.
when I change the code to
<!--#exec cmd=webtest" -->
then there is nothing come out
but it will work if <!--#exec cmd=fs/flash/httpd/cgi-bin/webtest" -->
I am quite strange it is can not find the default directory.
so I have do another test
PATH:
<!--#echo var="PATH" --> <BR>
SERVER_ROOT:
<!--#echo var="SERVER_ROOT" --> <BR>
SERVER_SOFTWARE:
<!--#echo var="SERVER_SOFTWARE" --> <BR>
HTTPD_ROOT_DOC:
<!--#echo var=" HTTPD_ROOT_DOC" --> <BR>
HTTPD_SCRIPTALIAS:
<!--#echo var="HTTPD_SCRIPTALIAS" --> <BR>
HTTPD_ROOT_DIR:
<!--#echo var="HTTPD_ROOT_DIR"--> <BR>
however
HTTPD_ROOT_DOC & HTTPD_SCRIPTALIAS & HTTPD_ROOT_DIR
can not display at all.
Another Question is:
slinger seems can not accept the soft link as it is env path.
for example
ln -sP /fs/flash/httpd/web /usr/web
export HTTPD_ROOT_DIR=/usr/web
slinger -e -s &
when I start the we, slinger will crash
|
|
|