<div id="title" style="width: 550px; height: 25px">투게더 운영에 맞는 아파치 웹서버 설정 </div>
<div id="content_a" style="width: 550px; height: 25px"><div>아래 설정은 리눅스 서버의 관리자(root권한자)가 직접 처리해야 할 문제 입니다. </div><div>웹호스팅을 받고 있으신 분은 투게더 설치 후 프로그램이 정상적으로 작동되지 않을 경우 서버 관리자에게 직접 이 페이지를 보여주면서 CGI 프로그램이 작동될 수 있도록 요청을 하셔야 합니다.</div><div>*******************************************************************************</div> <div>아파치 서버의 conf/httpd.conf 에서 아래 4곳을 찾아서 똑같이 해 주세요. 그러면 CGI 파일이 실행이 될 겁니다. 이렇게 했음에도 실행이 되지 않는다면 다른 원인을 찾아봐야 합니다.</div><div> 아파치 서버 디렉토리 : /usr/local/apache/conf</div><div>또는 /etc/httpd/conf</div> <div>아래 파일(httpd.conf)에서 수정을 하시고 아파치 서버를 다시 시작(restart)해 주세요. /usr/local/apache/conf/httpd.conf</div>
<div>[확인1]</div><div># # 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. # # 아래에서 ExecCGI가 반드시 포함되어야 합니다.</div><div># 이 설정은 홈페이지 상에서 CGI 프로그램을 사용할 수 있도록 합니다.</div><div># AllowOverride은 All로 설정해 두세요.</div><div>Options FollowSymLinks Includes ExecCGI AllowOverride All </div>
<div>[확인2]</div><div># # This should be changed to whatever you set DocumentRoot to. # </div><div># # 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. # # 아래에서 ExecCGI가 반드시 포함되어야 합니다.</div><div># 이 설정은 홈페이지 상에서 CGI 프로그램을 사용할 수 있도록 합니다. Options Includes FollowSymLinks ExecCGI MultiViews</div><div> </div><div>[확인3]</div><div># # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # # 아래에서 index.cgi가 반드시 포함되어야 합니다.</div><div># 이것은 홈페이지 주소를 입력했을 때 자동으로 index.cgi 파일을 불러오도록 합니다.</div><div># 홈페이지에서 index.cgi 파일을 제일 먼저 불러오도록 하려면 아래와 같이 index.cgi 파일을 제일 앞에 두시면 됩니다.</div><div>DirectoryIndex index.cgi index.html index.htm</div> <div>[확인4]</div><div># # AddHandler allows you to map certain file extensions to "handlers", # actions unrelated to filetype. These can be either built into the server # or added with the Action command (see below) # # If you want to use server side includes, or CGI outside # ScriptAliased directories, uncomment the following lines. # # To use CGI scripts: # # 아래 줄에서 주석(#) 처리를 삭제해 주세요.</div><div># 이 설정은 홈페이지 상에서 CGI 프로그램을 사용할 수 있도록 합니다. AddHandler cgi-script .cgi</div><div></div><div>***************************************************************************</div><div></div><div>이상과 같이 설정하시면 홈페이지에서 투게더 홈페이지빌더를 사용하는데 필요한 환경설정은 마치게 됩니다. 투게더에서 사용하는 프로그램은 확장자가 모두 .cgi 형식으로 되어 있기 때문에 CGI 관련 관경설정을 해 두어야만 정상적으로 사용할 수 있습니다.</div><div>한 예로, 요즘 많이 사용하고 있는 PHP 프로그램도 이처럼 환경설정을 해 두었기 때문에 여러분의 서버 계정에서 불편없이 사용할 수 있는 것입니다. 하지만 CGI 방식은 많이 사용하지 않는 관계로 서버 관리자가 환경설정을 해 두지 않는 경향이 많은데, PHP에 앞서서 이전에는 리눅스에서는 일반적으로 C 또는 Perl 프로그래밍을 많이 사용해 왔기 때문에 CGI 방식을 많이 사용했습니다.</div><div></div><div>이 부분은 서버관리자가 아파치 웹서버 환경설정파일을 수정해야 하는 부분이므로 참고하시기 바랍니다.</div><div></div><div>감사합니다.</div></div>
writer ip : 222.101.187.100
59.17.161.87 2008/02/26 (11:25:48)
위와같은 CGI 설정은 이미 서버설정에 적용된 상태입니다. 해당 CGI를 로컬에서 확인결과 정상적으로 작동하였습니다.