티스토리 뷰
목적 - http를 이용하여 cgi script를 호출한다.
httpd.conf
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
</IfModule>
<Directory "/usr/local/apache2/cgi-bin">
Options +ExecCGI
AddHandler cgi-script .cgi
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
</IfModule>
<Directory "/usr/local/apache2/cgi-bin">
Options +ExecCGI
AddHandler cgi-script .cgi
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
./cgi-bin/test.cgi
#!/bin/sh
print "Content-type: text/plain; charset=iso-8859-1\n\n";
echo "<html><head><title></title></head><body>SUCCESS!!</body>"
print "Content-type: text/plain; charset=iso-8859-1\n\n";
echo "<html><head><title></title></head><body>SUCCESS!!</body>"
http://domain/test.cgi 를 호출하여 확인.
by rocksea
'Developer' 카테고리의 다른 글
redmine (0) | 2012.03.26 |
---|---|
Jboss Clustering (0) | 2012.03.19 |
Apache2.2 + SSL 설치 (0) | 2012.03.15 |
Binary Search ( 이진검색 ) Code (0) | 2012.03.09 |
Name Server Install & Zone file Setting (0) | 2012.03.09 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 대명사 구문
- 베트남
- hdfs
- Business English
- 다낭
- redis
- 가정법
- 해외여행
- NGINX
- k8s
- it
- memcached
- hadoop
- JBOSS
- maven
- nodejs
- 스페인 여행
- 비교구문
- mongoDB
- Python Django
- PostgreSQL
- 영작
- ubuntu
- 비지니스 영어
- 여행
- 도덕경
- Python
- 조동사
- 영문법
- AWS
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함