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> 


|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

호스팅정보

+
제목 글쓴이 날짜 조회
10년 전 조회 972
10년 전 조회 1,052
10년 전 조회 1,605
10년 전 조회 1,100
10년 전 조회 977
10년 전 조회 805
10년 전 조회 916
10년 전 조회 1,018
10년 전 조회 821
10년 전 조회 902
10년 전 조회 1,060
10년 전 조회 1,282
10년 전 조회 760
10년 전 조회 2,125
10년 전 조회 973
10년 전 조회 961
10년 전 조회 1,182
10년 전 조회 1,591
10년 전 조회 1,527
10년 전 조회 1,467
10년 전 조회 822
10년 전 조회 1,087
10년 전 조회 911
10년 전 조회 1,248
10년 전 조회 1,638
10년 전 조회 1,373
10년 전 조회 1,033
10년 전 조회 1,187
10년 전 조회 1,196
10년 전 조회 1,175
🐛 버그신고