빅

mod_perl + apache2 연동

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


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> 


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

자유게시판

203,420건
+
제목 글쓴이 날짜 조회
15-12-05 조회 2만
15-12-05 조회 1,835
15-12-05 조회 3,563
15-12-05 조회 1,382
15-12-05 조회 4,833
15-12-05 조회 1,574
15-12-05 조회 1,404
15-12-05 조회 1,493
15-12-05 조회 1,879
15-12-05 조회 1,535
15-12-05 조회 1,424
15-12-05 조회 1,245
15-12-05 조회 1,279
15-12-05 조회 1,340
15-12-05 조회 1,403
15-12-05 조회 1,275
15-12-05 조회 3,116
15-12-05 조회 1,996
15-12-05 조회 1,354
15-12-05 조회 1,409