[ic] Undefined catalog error on RAQ3

Mike Heins mikeh@minivend.com
Sun, 25 Feb 2001 13:45:15 -0500


--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=us-ascii

Quoting Shozo Murahashi (murahashi@ayayu.com):
> In error.log below, I think the path is incorrect.
> 
> /main/cgibin/outdoor-w.cgi/index.html/main/cgibin/outdoor-w.cgi/index.ht
> ml
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> The above part should be removed. How can I do to remove this?
> /main/cgibin/outdoor-w.cgi/in
> dex.html/main/cgibin/outdoor-w.cgi/index.html Undefined catalog:
> /main/cgibin/ou
> tdoor-w.cgi/index.html
> 211.124.191.118 - - [25/2/2001:10:26:23 +0900] -
> /main/cgibin/outdoor-w.cgi/ab
> outus.html/main/cgibin/outdoor-w.cgi/aboutus.html Undefined catalog:
> /main/cgibi
> n/outdoor-w.cgi/aboutus.html
> 
> 
> My makecat session is as follows. Interchange server is running now.
> 
> Catalog name? outdoor-w
> Enter path to httpd.conf file: /etc/admserv/conf/httpd.conf
> Server name? www.outdoor-w.com
> DemoType? construct
> MailOrderTo? main
> CatRoot? /home/sites/home/users/main/catalogs/outdoor-w
> CgiDir? /home/sites/home/users/main/web/cgibin
> CgiUrl? /users/main/cgibin/outdoor-w.cgi
> Aliases? /outdoor-w
> DocumentRoot? /home/sites/home/users/main/web
> SampleHtml? /home/sites/home/users/main/web/outdoor-w
> ImageDir? /home/sites/home/users/main/web/outdoor-w/images
> ImageUrl? /users/main/outdoor-w/images
> INET or UNIX mode? UNIX
> Do you use CGIWRAP or SUEXEC? y

This looks like the server is mangling the PATH_INFO and SCRIPT_NAME,
which particularly happens on Cobalt systems. 

> CgiUrl? /users/main/cgibin/outdoor-w.cgi

looks wrong. But I cannot tell. It looks like there is a very strange
web server setup. It is just a question of getting SCRIPT_NAME and
PATH_INFO right -- you might experiment with the attached test-cgi
script.

-- 
Red Hat, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <mheins@redhat.com>

Fast, reliable, cheap.  Pick two and we'll talk.  -- unknown

--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=test-cgi

#!/bin/sh

echo Content-type: text/plain
echo

echo CGI/1.0 test script report:
echo

echo argc is $#. argv is "$*".
echo
echo SERVER_SOFTWARE = $SERVER_SOFTWARE
echo SERVER_PROTOCOL = $SERVER_PROTOCOL
echo SERVER_NAME = $SERVER_NAME
echo SERVER_PORT = $SERVER_PORT
echo HTTP_FROM = $HTTP_FROM
echo HTTP_REFERRER = $HTTP_REFERRER
echo HTTP_ACCEPT = "$HTTP_ACCEPT"
echo HTTP_USER_AGENT = $HTTP_USER_AGENT
echo
echo PATH = $PATH
echo GATEWAY_INTERFACE = $GATEWAY_INTERFACE
echo REQUEST_METHOD = $REQUEST_METHOD
echo PATH_INFO = $PATH_INFO
echo PATH_TRANSLATED = $PATH_TRANSLATED
echo SCRIPT_NAME = $SCRIPT_NAME
echo QUERY_STRING = $QUERY_STRING
echo REMOTE_HOST = $REMOTE_HOST
echo REMOTE_ADDR = $REMOTE_ADDR
echo REMOTE_USER = $REMOTE_USER
echo REMOTE_IDENT = $REMOTE_IDENT
echo AUTH_TYPE = $AUTH_TYPE
echo CONTENT_TYPE = $CONTENT_TYPE
echo CONTENT_LENGTH = $CONTENT_LENGTH
echo
echo

--Dxnq1zWXvFF0Q93v--