RSS

Membuat Webserver di Centos








#rpm -qa |grep http (melihat apakah service http sudah ada/blm)
#yum install httpd (install apache)

3 CARA MENEMPATKAN FILE DI WEB SERVER

1. DocumentRoot/document utama biasanya/var/www/html
2. UserDir /home/budi/html
3. VirtualHost (bebas selain diatas misal /home/budi/web)

Konfigurasi cara 1:
# vi /etc/httpd/conf/httpd.conf

/DocumentRoot (mencari letak documentRoot letak file html/php/)

:wq
KETIK YANG BAWAH AJA
=================
#vi /var/www/html/index.html
<h1><marquee behavior=alternate loop=15>wellcome in NF Computer </marquee></h1>
:wq

#service httpd restart atau /etc/init.d/httpd restart
Cara panggil di browser:

/var/www/html => http://localhost
http://192.168.1.23

http://nf.com

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 komentar:

Posting Komentar