mod_perl + apache2 연동

· 10년 전 · 1048


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,062
10년 전 조회 1,143
10년 전 조회 1,682
10년 전 조회 1,180
10년 전 조회 1,052
10년 전 조회 876
10년 전 조회 987
10년 전 조회 1,089
10년 전 조회 885
10년 전 조회 973
10년 전 조회 1,129
10년 전 조회 1,351
10년 전 조회 836
10년 전 조회 2,205
10년 전 조회 1,049
10년 전 조회 1,025
10년 전 조회 1,255
10년 전 조회 1,652
10년 전 조회 1,587
10년 전 조회 1,527
10년 전 조회 882
10년 전 조회 1,163
10년 전 조회 976
10년 전 조회 1,330
10년 전 조회 1,731
10년 전 조회 1,441
10년 전 조회 1,114
10년 전 조회 1,262
10년 전 조회 1,265
10년 전 조회 1,245