Problems with httpd

email!w2!elmar@mailsrv.edvz.univie.ac.at (Praktikant)
Original-Received: from 
                   GATEWAY by newssrv with netnews for www-talk@info.cern.ch 
                   (www-talk@info.cern.ch)
Pp-Warning: Illegal Received field on preceding line
To: www-talk@nxoc01.cern.ch
Date: Thu, 6 May 1993 09:09:10 GMT
Message-id: <1993May6.090910.28846@email.tuwien.ac.at>
Organization: Inst. f. Informationssysteme, TU Wien
From: email!w2!elmar@mailsrv.edvz.univie.ac.at (Praktikant)
Sender: News/Mail-Gateway@newssrv.edvz.univie.ac.at
Reply-To: elmar@infosys.tuwien.ac.at
Subject: Problems with httpd
X-Charset: ASCII
X-Char-Esc: 29

I compiled the httpd-server from CERN (version 2.04) on a sun-sparcstation 1+
with SUN/OS 4.1.3.

I started it from the command line with:

	httpd -R -v -p 3767

When I wanted to test the server with

	www http://w2.infosys.tuwien.ac.at:3767\
		/home/w11/elmar/www/WWW/Commands.html

the server printed the following on the screen:


New anchor 4c240 has hash 99 and address
	`/home/w11/elmar/www/WWW/Commands.html' 
HTAccess: loading document
	/home/w11/elmar/www/WWW/Commands.html
HTFile: can't stat
	/home/w11/elmar/WWW///home/w11/elmar/www/WWW/Commands.html
HTAccess: Opening
	`/home/w11/elmar/WWW///home/w11/elmar/www/WWW/Commands.html'
		gives -1
FTP: Looking for /home/w11/elmar/www/WWW/Commands.html
HTTPAccess: Can't find internet node name `'.
TCP: Error 2 in `errno' after call to FTP file load() failed.
        No such file or directory
HTAccess: Can't access `/home/w11/elmar/www/WWW/Commands.html'


Therefore I checked the file 'HTFile.c' and found that the filename is put
together in line 306 (function 'HTLocalName'):

	sprintf(result, "%s/WWW/%s/%s%s", home, access, host, path);
	
When I deleted this line and returned only the path, the server gave back
the information to the client which displayed it on the screen.

Because I have no debugger here, I couldn't test if this change will have
some unwanted consequences. Any ideas?

	Elmar