Contents

System/OS
2003.04.23 10:27

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

Views 14625 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
1125 Etc 스파이웨어(BHO) 탐지하는 방법.. hooni 2013.04.23 44484
1124 Develop [android] ListView+ArrayAdapter 테스트 hooni 2013.04.23 43958
1123 Develop [android] 화면 전환(가로/세로)시 설정 hooni 2013.04.23 43427
1122 Develop [c++] BHO 프로그램 동작 원리.. 간단하게.. hooni 2013.04.23 43157
1121 Develop [ios] 미스터피자(Mr.pizza) 어플 file hooni 2013.04.23 42695
1120 System/OS [linux] 네트웍 트래픽 모니터링(MRTG) hooni 2003.04.23 42466
1119 Develop [java] 스트러츠(Struts) 세팅 ㅋㅋ file hooni 2013.04.23 42399
1118 Etc [용어] POC, Pilot, BMT에 대한 IT 업계에서 통용되는 의미 hooni 2014.01.02 42056
1117 System/OS [ms-sql] 서브스트링(substring), 프로시저(SP) 작성 예제 hooni 2013.04.23 41398
1116 System/OS [dos] 노트북 백업 스크립트 xcopy 명령 예제 hooni 2003.04.23 40876
1115 Develop [android] 개발 환경 세팅 따라하기 ㅋㅋ file hooni 2013.04.23 40463
1114 System/OS [mac] 맥에서 APM(apache,php,mysql) 구성하기 hooni 2013.04.23 38833
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 98 Next
/ 98