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 성문 종합 영어 정리된 pdf 파일 file hooni 2013.06.25 31260
1124 Etc 선과 악에 대한 영어논술문항(지킬앤하이드 독서 후 이어지는 심화 수행평가) hooni 2013.12.04 12800
1123 System/OS 서버 확장을 위한 두 가지 방법 file hooni 2018.08.29 2272
1122 Develop 서기의 PHP 동영상 강의(싱싱해) hooni 2013.05.15 31044
1121 PPT 삼성페이(Samsung Pay) 구조 file hooni 2016.09.09 1044
1120 Etc 사이버보안실무 시험. secret hooni 2017.04.20 0
1119 Develop 사이버보안실무 수업 메모 secret hooni 2017.03.23 0
1118 Etc 사이버보안실무 수업 메모 hooni 2017.03.30 951
1117 Develop 사이버보안실무 발표자료 (2017.06.08) file hooni 2017.06.05 1369
1116 Develop 베지어 곡선(Bézier curve) 알고리즘(spline 곡선) 3 file hooni 2013.04.23 33438
1115 Etc 베지어 곡선 (Bezier curve) file hooni 2013.08.18 223430
1114 Develop 밸런싱 로봇.. 최종.. (관련 논문도 첨부) ㅋㅋ file hooni 2013.04.23 22878
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 98 Next
/ 98