mod_perl + apache2 연동

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


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> 


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

호스팅정보

485건
+
제목 글쓴이 날짜 조회
15-12-10 조회 1,800
15-12-10 조회 1,301
15-12-09 조회 1,180
15-12-09 조회 988
15-12-09 조회 1,082
15-12-08 조회 1,223
15-12-08 조회 979
15-12-08 조회 1,103
15-12-07 조회 1,227
15-12-07 조회 1,463
15-12-07 조회 934
15-12-06 조회 2,302
15-12-05 조회 1,145
15-12-05 조회 1,127
15-12-05 조회 1,371
15-12-05 조회 1,746
15-12-04 조회 1,693
15-12-04 조회 1,622
15-12-04 조회 982
15-12-03 조회 1,272
15-12-03 조회 1,077
15-12-03 조회 1,439
15-12-02 조회 1,839
15-12-02 조회 1,543
15-12-02 조회 1,210
15-12-01 조회 1,350
15-12-01 조회 1,364
15-12-01 조회 1,347
15-12-01 조회 1,425
15-11-30 조회 1,349