mod_perl + apache2 연동 정보
mod_perl + apache2 연동본문
mod_perl 2.0.4 받아서 설치한다.
다운로드는 http://apache.perl.org/download/index.html
% tar -xvzf mod_perl-2.x.xx.tar.gz
% cd modperl-2.0
% perl Makefile.PL MP_APXS=$HOME/httpd/prefork/bin/apxs
% make && make test && make install
httpd.conf 수정
LoadModule perl_module modules/mod_perl.so
vhosts.conf 수정
<Location /사용하고자하는 디렉토리>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Location>
전체 설정에서 pl 파일 만 적용하고 싶다면...
<Directory /home/>
<FilesMatch "\.(pl)$">
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</FilesMatch>
</Directory>
공감
0
0
댓글 0개