Linux/Apache
CGI (Common Gateway Interface)
1. ScriptAlias : 아파치는 특정 디렉토리를 CGI 프로그램용으로 둔다. 보안상 이유때문에 CGI 프로그램은 ScriptAlias한 디렉토리에 한정 예제 : # vi /etc/httpd/conf/httpd.conf ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" # cat /var/www/cgi-bin/hello.cgi #!/usr/bin/perl print "Content-type: text/html\n\n"; print "Hello, World."; # chmod 755 /var/www/cgi-bin/hello.cgi # service httpd restart http://xxx.xxx.xxx.xxx/cgi-bin/hello.cgi 2. 아무 디렉토리에서나 CGI..
2012. 9. 24. 14:19
최근댓글