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>

?

List of Articles
No. Category Subject Author Date Views
106 System/OS [linux] ipfwadm를 이용한 패킷필터링(구버전) hooni 2003.04.23 13015
105 System/OS [linux] Proftpd 설치 가이드 hooni 2003.04.23 13021
104 System/OS [linux] DHCP(Dynamic Host Configuration Protocol) 서버 hooni 2003.04.23 13023
103 System/OS [linux] 한글 URL 인식할 수 있게 아파치(Apache) 설정 (mod_url.c 설치) hooni 2013.04.23 13058
102 System/OS [linux] 계정관리하기(내공쌓기) hooni 2003.04.23 13157
101 System/OS [linux] 아파치설치/설정 - SSI(Server Side Include) hooni 2003.04.23 13206
100 System/OS [linux] Xwindow/Xmanager 사용 hooni 2003.04.23 13332
99 System/OS [ms-sql] 프로시져 예제.. file hooni 2013.04.23 13406
98 System/OS [linux] 쉘 스크립트에 대한 설명과 예제.. hooni 2003.04.23 13413
97 System/OS [linux] 프로그램 설치방법 (내공쌓기) hooni 2003.04.23 13433
96 System/OS [linux] 간단한 vi편집기 사용 명령 hooni 2003.04.23 13456
95 System/OS [linux] 기존 환경설정 저장하면서 커널 컴파일.. hooni 2003.04.23 13458
94 System/OS [linux] 쉘 환경변수 PS1(프롬프트) hooni 2003.04.23 13492
93 System/OS [linux] ipchains 옵션 hooni 2003.04.23 13611
92 System/OS 아파치(Apache) 인증사용(htaccess)으로 특정 디렉토리에 암호걸기 hooni 2013.04.23 13659
91 System/OS [linux] 셀 스크립트 if, for, case in.. hooni 2003.04.23 13686
Board Pagination Prev 1 5 6 7 8 9 ... 13 Next
/ 13