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
74 System/OS 맥에서 파일공유 (윈도우,맥) file hooni 2013.04.25 37301
73 System/OS [mysql] mysql user 생성시 ERROR 1364 hooni 2013.04.25 28504
72 System/OS Mac OS X - Apache+PHP+MySQL 환경 서버 hooni 2013.04.25 31627
71 System/OS [mysql] MySQL server has gone away 에러 대응 hooni 2013.05.29 19224
70 System/OS [mac] 컨텍스트(Context) 메뉴 "다음으로 열기" 내용 정리 hooni 2013.07.10 18797
69 System/OS [mac] SVN 1.8 업데이트 방법 hooni 2013.09.24 14561
68 System/OS [linux] 우분투 APM + phpmyadmin 설치 hooni 2013.10.07 49319
67 System/OS [mac] Mac에서 Mac으로 원격제어하기 (맥에서 맥으로) file hooni 2013.10.08 36987
66 System/OS [mac] 맥에서 슬립(잠자기) 모드 진입을 막는 방법~ hooni 2013.10.10 30878
65 System/OS [linux] 특정 문자열 포함된 파일 찾는 명령어 hooni 2013.10.16 30609
64 System/OS [mac] Charlesproxy 간단한 설정 내용~ hooni 2013.11.12 12323
63 System/OS CentOS 6.5 USB 설치 6 file hooni 2013.12.18 37676
62 System/OS [linux] CentOS 터미널 언어 설정(한글/영어) hooni 2013.12.22 18513
61 System/OS [linux] root 전환시 패스워드 없이 su 사용하기 hooni 2013.12.22 12685
60 System/OS [linux] iconv를 이용하여 euc-kr 문서를 utf-8로 대량으로 변환하기 file hooni 2014.01.09 12219
59 System/OS [linux] CentOS 6.x Cati 설치 (yum) hooni 2014.01.17 48594
Board Pagination Prev 1 ... 7 8 9 10 11 13 Next
/ 13