sploo22
06-11-2003, 01:57 PM
I'm running an Apache 1.3.26 server with user directories set up so that /usr/www/<username> is accessible both as http://server/~<username> and as http://server/users/<username>. With the second form everything's perfect, but when I use the first notation all of my scripts fail with "500 Internal Server Error". The error log says "Premature end of script headers".
I know this sounds like a typical stupid newbie mistake, but bear with me. ;) First of all, the difference between the two methods of accessing shouldn't affect CGI programs. Also, by putting the command "env > /tmp/tempfile.$$" at the very beginning of the file, I determined that the script is not being excuted at all; no file is created. Other types of files, including HTML and PHP scripts, work fine either way.
Is this a bug in Apache or mod_userdir?
I know this sounds like a typical stupid newbie mistake, but bear with me. ;) First of all, the difference between the two methods of accessing shouldn't affect CGI programs. Also, by putting the command "env > /tmp/tempfile.$$" at the very beginning of the file, I determined that the script is not being excuted at all; no file is created. Other types of files, including HTML and PHP scripts, work fine either way.
Is this a bug in Apache or mod_userdir?