mod_perl + apache2 연동

· 10년 전 · 1106


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년 전 조회 1,246
10년 전 조회 1,794
10년 전 조회 2만
10년 전 조회 1,654
10년 전 조회 3,391
10년 전 조회 1,193
10년 전 조회 4,640
10년 전 조회 1,395
10년 전 조회 1,212
10년 전 조회 1,330
10년 전 조회 1,706
10년 전 조회 1,364
10년 전 조회 1,265
10년 전 조회 1,085
10년 전 조회 1,107
10년 전 조회 1,180
10년 전 조회 1,250
10년 전 조회 1,119
10년 전 조회 2,738
10년 전 조회 1,809
10년 전 조회 1,188
10년 전 조회 1,224
10년 전 조회 1,182
10년 전 조회 1,156
10년 전 조회 1,018
10년 전 조회 1,654
10년 전 조회 1,169
10년 전 조회 1,448
10년 전 조회 2,909
10년 전 조회 1,105
🐛 버그신고