mod_perl + apache2 연동

· 10년 전 · 1125


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,273
10년 전 조회 1,813
10년 전 조회 2만
10년 전 조회 1,671
10년 전 조회 3,415
10년 전 조회 1,217
10년 전 조회 4,662
10년 전 조회 1,425
10년 전 조회 1,238
10년 전 조회 1,349
10년 전 조회 1,727
10년 전 조회 1,391
10년 전 조회 1,290
10년 전 조회 1,110
10년 전 조회 1,126
10년 전 조회 1,197
10년 전 조회 1,270
10년 전 조회 1,142
10년 전 조회 2,771
10년 전 조회 1,829
10년 전 조회 1,209
10년 전 조회 1,245
10년 전 조회 1,213
10년 전 조회 1,185
10년 전 조회 1,032
10년 전 조회 1,668
10년 전 조회 1,186
10년 전 조회 1,462
10년 전 조회 2,928
10년 전 조회 1,122