>> Edit article
이름
제목
패스워드
: server의 /service/myhome/cgi-bin/test.cgi를 브라우저에서 실행(이때 : URL : www.myhome.co.kr/cgi-bin/test.cgi)하면 실행이 됩니다. : 그런데, 같은 server의 /home/gilnam/public_html/cgi-bin/test1.cgi를 : 브라우저에서 실행하면 다음과 같은 실행할 수 없습니다. : "You don't have permission to access : /~gilnam/cgi-bin/test1.cgi on this server." : 제생각에는 httpd.conf를 수정하면 가능할거 같은데, 정확이 어딘지를 : 모르겠습니다. : 제발... : : ps : /home/gilnam/public_html/htdocs의 html은 실행합니다. cgi를 실행하기 위해서는 cgi를 실행하고자 하는 디렉토리에 ExecCGI라는 옵 션이 있어야 합니다. httpd.conf파일의 내용을 살펴보시면, cgi-bin 디렉토리의 설정을 보실 수 있을 겁니다. ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/" <Directory "/usr/local/apache/cgi-bin"> AllowOverride None Options FollowSymLinks ExecCGI </Directory> 이렇게 디렉토리설정이 되어야 cgi를 실행할 수 있는 것입니다. 현재 public_html디렉토리는 html문서에 대해 읽을 수 있게 설정이 되어있어 서 html은 볼 수 있는 것이죠. 그러니까 님께서 cgi를 실행하려는 디렉토리를 위와같이 ScriptAlias를 주시 고 그 디렉토리에 대해 마찬가지로 위와같은 설정을 해주신후 아파치를 재구동 해주세요. 예를 들어, 님께서 만드신 디렉토리가 /home/gilnam/public_html/cgi- gilnam 라면 ScriptAlias /cgi-gilnam/ "/home/gilnam/public_html/cgi-gilnam/" <Directory "/usr/local/apache/cgi-gilname"> AllowOverride None Options FollowSymLinks ExecCGI </Directory> 일케 해주면 되겠죠... 그럼.. -- 도움이 되셨길..
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved