Contents

System/OS
2003.04.23 10:27

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

Views 14617 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
1101 Develop [android] 초간단 얼럿 (AlertDialog) hooni 2016.10.21 930
1100 Develop [ios] NSString, RegularExpression Find/Replace hooni 2017.04.14 931
1099 Develop [ios] iOS 앱 아이콘을 만드는 유틸 file hooni 2015.01.03 935
1098 Develop Aspect Oriented Programming in Objective-C hooni 2015.05.18 936
1097 Develop [android] Android N requires the IDE to be running with Java 1.8 or later 오류 hooni 2016.08.30 936
1096 Develop [git] 쉬운 버전관리 Git 설명 hooni 2015.08.18 945
1095 Develop [android] N-Puzzle 게임 file hooni 2015.07.09 949
1094 Develop [c] 기막힌 정렬 코드 ㅋㄷ file hooni 2015.10.13 952
1093 Develop [c] 이진 탐색 두 가지 코드 (재귀/반복) file hooni 2015.06.26 953
1092 Develop [ios] 아이폰 앱 이름 및 버전 정보 hooni 2015.03.24 954
1091 PPT [ppt] Information Security 발표 자료 (@Team Study 2012.11.15) file hooni 2015.07.22 955
1090 PPT [ppt] iOS 플라랩#02(2015.03.19) 발표 자료 file hooni 2015.04.24 964
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 ... 98 Next
/ 98