mod_perl + apache2 연동

· 2015-12-05 (토) 07:06:49 · 1236


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> 


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

자유게시판

202,933건
+
제목 글쓴이 날짜 조회
15-12-05 조회 1,836
15-12-05 조회 1,476
15-12-05 조회 1,384
15-12-05 조회 1,205
15-12-05 조회 1,237
15-12-05 조회 1,298
15-12-05 조회 1,370
15-12-05 조회 1,236
15-12-05 조회 3,039
15-12-05 조회 1,945
15-12-05 조회 1,318
15-12-05 조회 1,363
15-12-05 조회 1,324
15-12-05 조회 1,279
15-12-05 조회 1,115
15-12-05 조회 1,778
15-12-05 조회 1,300
15-12-05 조회 1,581
15-12-04 조회 3,087
15-12-04 조회 1,220