10월 22일 서버 점검 안내 (00:00~06:00)
빅

mod_perl + apache2 연동

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


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> 


|
댓글을 작성하시려면 로그인이 필요합니다.
+
제목 글쓴이 날짜 조회
15-12-10 조회 1,819
15-12-10 조회 1,317
15-12-09 조회 1,226
15-12-09 조회 1,003
15-12-09 조회 1,098
15-12-08 조회 1,244
15-12-08 조회 997
15-12-08 조회 1,117
15-12-07 조회 1,245
15-12-07 조회 1,480
15-12-07 조회 953
15-12-06 조회 2,336
15-12-05 조회 1,163
15-12-05 조회 1,144
15-12-05 조회 1,416
15-12-05 조회 1,761
15-12-04 조회 1,712
15-12-04 조회 1,637
15-12-04 조회 1,003
15-12-03 조회 1,293
15-12-03 조회 1,096
15-12-03 조회 1,459
15-12-02 조회 1,856
15-12-02 조회 1,564
15-12-02 조회 1,228
15-12-01 조회 1,368
15-12-01 조회 1,383
15-12-01 조회 1,359
15-12-01 조회 1,444
15-11-30 조회 1,369