getting mod_perl to work out of homedirs
Hi, Has anyone figured out how to modify the httpd.conf so that the mod_perl will work in the user's public_html. I'm running the example script in the mod_perl docs. print "Content-type: text/plain\r\n\r\n"; print "Server's environment\n"; foreach ( keys %ENV ) { print "$_\t$ENV{$_}\n"; } You don't need a shebang-line for this, and mod_perl will run it if it's in the main cgi-bin of the server, and it's called like this: http://myserver.net/perl/modperl-test instead of http://myserver.net/cgi-bin/modperl-test This seems to be taken care of in the httpd.conf. I tried adding the user home dirs to the httpd.conf but it didn't work. So has anyone done this yet? Thanks. <IfModule mod_perl.c> # Provide two aliases to the same cgi-bin directory, # to see the effects of the 2 different mod_perl modes. # for Apache::Registry Mode ScriptAlias /perl/ "/usr/local/httpd/cgi-bin/" ScriptAlias /perl/ "/home/*/public_html/cgi-bin/" # for Apache::Perlrun Mode ScriptAlias /cgi-perl/ "/usr/local/httpd/cgi-bin/" ScriptAlias /cgi-perl/ "/home/*/public_html/cgi-bin/" </IfModule> -- use Perl; #powerful programmable prestidigitation
participants (1)
-
zentara