I have successfully managed to get UserDirs to work in Apache, however, CGI scripts don't work in the CGI-BIN of the UserDir.
I tested the CGI script in the Aliased directory (set in httpd.conf) where it worked fine (after chmod'ing it
) but when I copied it and chmod'ed it in a UserDir, it just returns 'Premature end of script headers'.
The only two possible reasons I can think of are that the CGI script is being chroot'ed and can't access the Interpreter or my httpd.conf is misconfigured. I have included the relevant (as far as I am aware) sections from my httpd.conf. Any help is greatly appreciated.
-------------
httpd.conf
-------------
AddHandler cgi-script .cgi
# Allows per user CGI
<Directory /home/*/www/cgi-bin/>
Options ExecCGI
SetHandler cgi-script
</Directory>