| 349 번 글의 답장글: Re: [급구!!!! CGI Shell지원] |
| 글쓴이: 산이
[홈페이지]
|
글쓴날: 2000년 11월 25일 21:12:20 토(저녁) |
조회: 1556 |
[dalgalim]님이 남기신 글:
>Shell Script로 짜여진 CGI를 웹브라우져에서
읽지를 못하는군요..
>..
>아래와같이 Interval Server Errror 뜹니다.
>Apache서버 Setting문젠거 같은데..
>Handler부분에도
.sh 을 추가시켜줬거든요..
>물론 User홈 Dir어는곳에서든
ExecCGI 처리 해주었구요..
>Permition도 755로 줬습니다.
>어디가 잘못된거죠...??
>아래.. 실행코자하는 test.sh과 Error Message 첨부합니다.
>
>고수님들의 빠른 답변기다립니다.
>
>=========== test.sh =============
>#!/bin/bash
>echo "<Content-Type:text/html>"
>echo "<html>"
>echo "<body>"
>echo "<center>"
>echo "TEST"
>echo "</center>"
>echo "</body>"
>echo "</html>"
>=================================
>
>======= Error Message.... ======
>Internal Server Error
>The server encountered an internal error or misconfiguration and was unable to
complete your request.
>Please contact the server administrator, dalgalim@kbes.co.kr and inform them of the
time the error occurred, and anything you might have done that may have caused the
error.
>
>More information about this error may be available in the server error
log.
>
>
>--------------------------------------------------------------------------------
>
>Apache/1.3.12 Server at www.kbes.co.kr Port 80
========================================
웁...별로 좋은 생각은 아니지만
테스트 삼아 .....
----------------------------------------
#!/bin/bash
# 다음과 같이 설정
echo Content-type: text/html
# 다음과 같이 빈행한줄 추가
echo
echo "<html>"
echo "<body>"
echo "<center>"
echo "TEST"
echo "<p>"
echo "</center>"
echo "</body>"
echo "</html>"
----------------------------------------
이와 같이 수정해 보세요..
http://www.linuxchannel.net/temp/test.cgi
에서 테스트해보았습니다.
|
이전글 : [급구!!!! CGI Shell지원]
다음글 : nslookup과 아파치설정에 대해서...
|
from 211.187.71.193
JS(Redhands)Board 0.4 +@
|