본문 바로가기

기술자료/기술운영자료

Apache에서 CGI 사용하도록 설정 수정

# vi /usr/local/apache/conf/httpd.conf 

 

 

<Directory "/usr/local/apache/cgi-bin">
    AllowOverride None
    Options None
    Order 
allow,deny <-- allow 로 되어 있는지 확인
    
Allow from all <-- allow 로 되어 있는지 확인
</Directory>

 

 

    # 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 directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    
(주석해제) AddHandler cgi-script .cgi