레드햇 7.0을 깔고 아파치 1.3.12를 설치 했습니다. 여기서 cgi를 돌릴려는
데 자구만 internal server error인가 이런에러가 납니다. 혹시 cgi프로
그램이 잘못되었나 싶어 아파치에서 제공하는 소스를 돌렸는데도 같은
에러가 납니다. 설정은 아래와 같습니다.
DocumentRoot "/var/www"
#
# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# permissions.
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
........
<Directory "/var/www">
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride None
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
UserDir public_html
......
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
ScriptAlias /aaa/ "/var/www/aaa/"
#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
AllowOverride None
#Options ExecCGI
</Directory>
<Directory "/var/www/mycgi">
Options Indexes MultiViews FollowSymLinks Includes ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
여기서 빠진부분이나 아님 다른 더 보충할 것이 있는지 알려주십시요.
그리고 제가 테스트할려는 cgi는 다음과 같습니다.
#!/usr/bin/perl <=perl경로 맞음
print ("ok");
이파일을 퍼미션 777임 이파일의 위치는 /var/www/mycgi/aaa.cgi 입니다.
쉘상에서는 아주 실행이 잘됩니다. 하지만 브라우져로 하면 에러가 납니다.
보시고 꼬~옥 답변부탁합니다.