System/OS
2003.04.23 10:27

[linux] 아파치설치/설정(CGI부분)

Views 14568 Votes 0 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
# 아파치 환경 설정 파일의 편집
$ vi $APACHE_HOME/conf/http.conf


1. 펄의 실행(추가 작성)
   AddType application/x-httpd-cgi .pl 

2. 특정 디렉토리에서 gif화일을 사용하려면
   ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/" ->
   Alias /cgi-bin/ "/usr/local/apache/cgi-bin/"

3. 모든 디렉토리에서나 cgi의 실행
   AddHandler cgi-script .cgi .pl
   Options FollowSymLinks ExecCGI                                 # ExecCGI 의 추가
   ScriptAlias /* "/*" 
   <Directory /*>
      Options FollowSymLinks ExecCGI Includes                         # 또는 Options All 
      AllowOverride None                                         # 또는 AllowOverride All
      Order allow,deny                                                 
      Allow from all
   </Directory>

4. 특정 디렉토리에서만 cgi 실행(보안문제)1
   AddHandler cgi-script .cgi .pl
   <Directory "/usr/local/apache/htdocs">                        # 특정 디렉토리의 풀경로
      Options Indexes FollowSymLinks ExecCGI  
      AllowOverride None
      Order allow,deny
      Allow from all
   </Directory>

   특정 디렉토리에서만 cgi 실행(안정적)2                        # ScriptAlias를 이용
   ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
   <Directory "/usr/local/apache/cgi-bin">
       AllowOverride None
       Options None
       Order allow,deny
       Allow from all
   </Directory>
   사용법 http://toconet.co.kr/cgi-bin/test.cgi 


5. 사용자 홈페이지에서의 cgi 실행
   Addtype CGI 하면 되고요.. 
   /home/*/public_html 
   <Directory /home/*/public_html>
        Options Indexes FollowSymLinks Includes Exec<B><U>CGI</U></B> 
        AllowOverride All
        order allow,deny
        allow from all
   </Directory>

?

  1. [linux] ipchains 사용예(패킷 필터링)

    Date2003.04.23 CategorySystem/OS Byhooni Views14175
    Read More
  2. [linux] ipfwadm를 이용한 패킷필터링(구버전)

    Date2003.04.23 CategorySystem/OS Byhooni Views13019
    Read More
  3. [windows] 98/ME 속도 빠르게 튜닝(부팅,메모리,레지스터)

    Date2003.04.23 CategorySystem/OS Byhooni Views50443
    Read More
  4. [windows] 도스 사용 팁

    Date2003.04.23 CategorySystem/OS Byhooni Views17810
    Read More
  5. [windows] 여러가지 활용 팁

    Date2003.04.23 CategorySystem/OS Byhooni Views19973
    Read More
  6. [windows] 배치(bat)파일 제작 방법

    Date2003.04.23 CategorySystem/OS Byhooni Views17006
    Read More
  7. [linux] 패킷 스니퍼링

    Date2003.04.23 CategorySystem/OS Byhooni Views16319
    Read More
  8. [linux] 패킷의 소스 주소 바꾸기

    Date2003.04.23 CategorySystem/OS Byhooni Views18788
    Read More
  9. [linux] iptables 명령어 매뉴얼(options)

    Date2003.04.23 CategorySystem/OS Byhooni Views11339
    Read More
  10. [linux] 간단한 NAT 설정 script

    Date2003.04.23 CategorySystem/OS Byhooni Views12601
    Read More
  11. [linux] 랜카드 2개 설정 & iptables 로 사설 ip..

    Date2003.04.23 CategorySystem/OS Byhooni Views14738
    Read More
  12. [linux] apache, php, jsp 환경설정하기..

    Date2003.04.23 CategorySystem/OS Byhooni Views15237
    Read More
  13. [linux] Oracle8.1.6, Mysql+PHP+Zend Optimizer+APACHE+Tomcat(jsp,servlet)+IMAP+gd

    Date2003.04.23 CategorySystem/OS Byhooni Views32457
    Read More
  14. [linux] 특수문자 환경 설정(stty)

    Date2003.04.23 CategorySystem/OS Byhooni Views15279
    Read More
  15. [linux] 메타(기호)문자의 의미와 사용

    Date2003.04.23 CategorySystem/OS Byhooni Views16389
    Read More
  16. [linux] 프로세스 상태확인(ps)

    Date2003.04.23 CategorySystem/OS Byhooni Views12707
    Read More
Board Pagination Prev 1 5 6 7 8 9 ... 74 Next
/ 74