mod_perl + apache2 연동

· 10년 전 · 1134


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,283
10년 전 조회 1,825
10년 전 조회 2만
10년 전 조회 1,680
10년 전 조회 3,425
10년 전 조회 1,224
10년 전 조회 4,677
10년 전 조회 1,434
10년 전 조회 1,246
10년 전 조회 1,357
10년 전 조회 1,739
10년 전 조회 1,401
10년 전 조회 1,298
10년 전 조회 1,120
10년 전 조회 1,135
10년 전 조회 1,206
10년 전 조회 1,278
10년 전 조회 1,148
10년 전 조회 2,784
10년 전 조회 1,838
10년 전 조회 1,217
10년 전 조회 1,247
10년 전 조회 1,224
10년 전 조회 1,191
10년 전 조회 1,040
10년 전 조회 1,681
10년 전 조회 1,193
10년 전 조회 1,465
10년 전 조회 2,940
10년 전 조회 1,129