bikin VirtualHost (ubuntu)

bikin VirtualHost (ubuntu)

domain peratama www.xxxxxxxx.com, domain kedua www.yyyyyyyy.com
syaratnya paket webserver telah berjalan dengan baik di ubuntu

pertama edit file : /etc/apache2/http.conf : (diisi dengan)

ServerAdmin webmaster@xxxxxxxx.com
ServerName xxxxxxxx.com
DocumentRoot /home/xxxxxxxx
CustomLog /hom/xxxxxxxx/log/xxxxxxxx.com.log combined

ServerAdmin webmaster@yyyyyyyy.com
ServerName yyyyyyyy.com
DocumentRoot /home/yyyyyyyy
CustomLog /home/yyyyyyyy.com/log/yyyyyyyy.com.log combined

Penjelasan:
<<–Awal dari virtual host :D
ServerAdmin webmaster@yyyyyyyy.com <<– Nama admin domain
ServerName yyyyyyyy.com <<– Nama domain yang akan masuk ke server kita
DocumentRoot /home/yyyyyyyy <– File domain yyyyyyyy.com :D
CustomLog /home/yyyyyyyy.com/log/yyyyyyyy.com.log combined <<– Dimana File Log website diletakan
<<– Penutup VirtualHost

# untuk file log, buatlah file kosong dulu, caranya :
~# touch /home/yyyyyyyy/log/yyyyyyyy.com.log

Berikutnya yang harus anda lakukan adalah restart apache:
~ #/etc/init.d/apache2 restart

jadi deh…. :D


Tinggalkan Balasan

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

 
Ikuti

Get every new post delivered to your Inbox.