[root@nsBunny~]# yum -y install httpd*

[root@nsBunny~]# rm -f /etc/httpd/conf.d/welcome.conf

[root@nsBunny~]# rm -f /var/www/error/noindex.html

[root@nsBunny~]# ln -s /usr/bin/perl /usr/local/bin/perl

[root@nsBunny~]# vi /etc/httpd/conf/httpd.conf

ServerTokens Prod

ServerRoot "/etc/httpd"

KeepAlive On

ServerAdmin bunny@xxxxxxxxx.pe.kr

ServerName www.xxxxxxxx.pe.kr:80

Options Indexes FollowSymLinks ExecCGI

AllowOverride All

# AddDefaultCharset UTF-8

AddHandler cgi-script .cgi .pl

ReadmeName README.html

HeaderName HEADER.html

IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

:wq è 저장

[root@nsBunny~]# service httpd start

부팅시 자동 시작 등록

[root@nsBunny~]# chkconfig httpd on

시험 폐이지 확인

[root@nsBunny~]# vi /var/www/html/index.html

<html>

<body>

<div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;">

Bunny Server Test Page

</div>

</body>

</html>

[root@nsBunny~]# vi /var/www/html/index.cgi

#!/usr/local/bin/perl

print "Content-type: text/html\n\n";

print "<html>\n<body>\n";

print "<div style=\"width: 100%; font-size: 40px; font-weight: bold; text-align: center;\">\n";

print "Bunny Server CGI Test Page";

print "\n</div>\n";

print "</body>\n</html>\n";

[root@nsBunny~]# chmod 705 /var/www/html/index.cgi

http://xxxxxxxxx.pe.kr/index.cgi è 확인

+ Recent posts