Apache 2.2.x 에서 cgi가 동작하지 않습니다
작성자 정보
- 송덕성 작성
- 작성일
컨텐츠 정보
- 3,226 조회
- 2 댓글
- 0 추천
- 목록
본문
지금까진 Apache 2.0.x 와 1.3.x 버전을 주소 써왔는데,
Apache 2.2.x 버전에서 cgi가 동작하지 않습니다.
[an error occurred while processing this directive] 요청한 객체에 접근할 수 있는 권한이 없습니다. 읽기 보호가 되어 있거나 웹서버가 읽을 수 없도록 되어 있습니다. [an error occurred while processing this directive]
위와 같은 에러가 납니다.
httpd.conf 에 ExecCGI도 넣고,
AddHandler cgi-script .cgi도 주석 지웠습니다.
2.2.x 에서 달라진 부분이 있나요?
php같은건 잘 돌아가고 있습니다.
혹시 apache 컴파일시 추가해줘야하는 모듈이라도 있는지요?
========= 다음은 에러 로그입니다. ==============
[Sat Oct 27 17:31:50 2007] [error] [client 211.179.14.208] Options ExecCGI is off in this directory: /home/good/public_html/board/board.cgi, referer: http://gooddomain.com/index.php?p=2001
[Sat Oct 27 17:31:50 2007] [error] [client 211.179.14.208] unable to include potential exec "include/top.html" in parsed file /usr/local/apache/error/HTTP_FORBIDDEN.html.var, referer: http://gooddomain.com/index.php?p=2001
[Sat Oct 27 17:31:50 2007] [error] [client 211.179.14.208] unable to include potential exec "include/bottom.html" in parsed file /usr/local/apache/error/HTTP_FORBIDDEN.html.var, referer: http://gooddomain.com/index.php?p=2001
관련자료
-
이전
-
다음
김현민님의 댓글
- 김현민
- 작성일
AddHandler cgi-script .cgi 주석해제
ScriptAlias /cgi-bin "usr/local/apache2/cgi-bin"
밑에 디렉토리 부분에 원하는 디렉토리에 대한 CGI를 허용해 줍니다.
<Directory "usr/local/apache2/htdocs">
AllowOverride None
Options Indexes FollowSymLinks ExecCGI
Order allow,deny
Allow from all
</Directory>
정해선님의 댓글
- 정해선
- 작성일
저 공부 많이 해야겠네요.. ㅋㅋㅋ 아.. 좋아..