[root@ns♥Bunny♥~]# yum -y install httpd*
[root@ns♥Bunny♥~]# rm -f /etc/httpd/conf.d/welcome.conf
[root@ns♥Bunny♥~]# rm -f /var/www/error/noindex.html
[root@ns♥Bunny♥~]# ln -s /usr/bin/perl /usr/local/bin/perl
[root@ns♥Bunny♥~]# 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@ns♥Bunny♥~]# service httpd start
부팅시 자동 시작 등록
[root@ns♥Bunny♥~]# chkconfig httpd on
시험 폐이지 확인
[root@ns♥Bunny♥~]# 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@ns♥Bunny♥~]# 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@ns♥Bunny♥~]# chmod 705 /var/www/html/index.cgi
'🌟2017년 이전 포스팅 모음 🌟 > 💞Linux OS💞' 카테고리의 다른 글
APM -3- MySQL Server 설치 및 기본 설정 (0) | 2012.09.22 |
---|---|
APM -2- PHP 팩키지 설치 및 기본 설정 (0) | 2012.09.22 |
VSFTP 서버 설치 및 FTP 구성 설정 (0) | 2012.09.22 |
Openssh 보안 텟넷 접속 서버 설치 및 설정 (0) | 2012.09.22 |
DHCP Server 설치와 설정 (0) | 2012.09.22 |