mod_perl + apache2 연동

· 10년 전 · 1041


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,053
10년 전 조회 1,133
10년 전 조회 1,674
10년 전 조회 1,171
10년 전 조회 1,045
10년 전 조회 870
10년 전 조회 980
10년 전 조회 1,081
10년 전 조회 875
10년 전 조회 969
10년 전 조회 1,124
10년 전 조회 1,343
10년 전 조회 828
10년 전 조회 2,193
10년 전 조회 1,042
10년 전 조회 1,013
10년 전 조회 1,248
10년 전 조회 1,645
10년 전 조회 1,580
10년 전 조회 1,521
10년 전 조회 875
10년 전 조회 1,155
10년 전 조회 973
10년 전 조회 1,319
10년 전 조회 1,725
10년 전 조회 1,431
10년 전 조회 1,107
10년 전 조회 1,253
10년 전 조회 1,258
10년 전 조회 1,235