On Mon, 2006-01-16 at 10:37 +0800, 黄叶 wrote: > Alias /perl/ /home/ghw/myperl/webproject/ > PerlSwitches -T > <Location /perl> > AddHandler perl-script .pl > SetHandler perl-script > PerlResponseHandler ModPerl::Registry > PerlOptions +ParseHeaders > Options +ExecCGI > Order allow,deny > Allow from all > </Location> > > Ok, I will wirte a Perl source code, it can run very good. > but if I put a jpeg format file int to > dircitory : /home/ghw/myperl/webproject/, the error is occour.
Use <Files> instead of <Location> so that it only handles .pl files with mod_perl. See your apache documentation for more information, or look at the example that Tom Schindl just posted to the list. - Perrin