Cara Konfigurasi Share Hosting Server Dengan Bind9 Apache2 di Linux Debian
Share web hosting merupakan pilihan yang masuk akal bagi pengelola sebuah internet site terutama bagi situs yang baru belum memiliki trafik yang banyak. Share hosting memberikan sumberdaya server yang nantinya akan di pakai bersama sama dengan beberapa situs net yang memiliki layanan yang sama. Masing masing share website hosting akan di berikan sebuah acount layanan website hosting yang di letakkan bersama sama ke beberapa acount dalam server yang sama dalam kinerjanya akan memakai provider bersama.
Berikut ini cara konfigurasi percentage hosting di linux debian
1. Konfigurasi ip address, saya menggunakan ip alias
car lo iface lo inet loopback auto eth0 iface eth0 inet static address 10.10.10.1 netmask 255.255.255.Zero community 10.10.10.Zero broadcast 10.10.10.255 gateway 10.10.10.254 vehicle eth0:0 iface eth0:0 inet static cope with 10.10.10.2 netmask 255.255.255.Zero community 10.10.10.0 broadcast 10.10.10.255 car eth0:1 iface eth0:1 inet static address 10.10.10.3 netmask 255.255.255.0 nektwork 10.10.10.0 broadcast 10.10.10.255 vehicle eth1 iface eth1 inet static address 192.168.One hundred.1 netmask 255.255.255.Zero community 192.168.A hundred.0 broadcast 192.168.100.2552. Restart network
#/etc/init.D/networking restart3. Install packet pendukung
#apt-get installation php5 bind9 dnsutils apache24. Pindah directory bind
#cd /and many others/bind5. Konfigurasi file named.conf.local
quarter "website1.Com" type master; file "/and so forth/bind/db.Website1"; ; quarter "website2.Com" type master; document "/etc/bind/db.Website2"; ; area "website3.Com" kind grasp; report "/and so forth/bind/db.Website3"; ; sector "10.10.10.In-addr.Arpa" type grasp; document "/and so on/bind/db.10"; ;6. Copykan beberapa file konfigurasi diantaranya
cp db.127 db.10 cp db.Local db.Website1 cp db.Neighborhood db.Website2 cp db.Neighborhood db.Website3
7. Konfigurasi document db.Website1
; ; BIND records report for local loopback interface ; $TTL 604800 @ IN SOA website1.Com. Root.Website1.Com. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS website1.Com. @ IN A 10.10.10.1 www IN A 10.10.10.1
eight. Konfigurasi file db.Website2
; ; BIND information document for neighborhood loopback interface ; $TTL 604800 @ IN SOA website2.Com. Root.Website2.Com. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS website2.Com. @ IN A 10.10.10.2 www IN A 10.10.10.2
9. Konfigurasi document db.Website3
; ; BIND information record for local loopback interface ; $TTL 604800 @ IN SOA website3.Com. Root.Website3.Com. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS website3.Com. @ IN A 10.10.10.3 www IN A 10.10.10.3
10. Konfigurasi record db.10
; ; BIND reverse facts file for nearby loopback interface ; $TTL 604800 @ IN SOA website1.Com. Root.Website1.Com. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS website1.Com. 1 IN PTR website1.Com. 2 IN PTR website2.Com. 3 IN PTR website3.Com.
11. Konfigurasi file /and so on/resolv.Conf
nameserver 10.10.10.1 nameserver 10.10.10.2 nameserver 10.10.10.Three
12. Restart bind9 dan cek hasil konfigurasi dengan perintah dig atau nslookup
/and so on/init.D/bind9 restart
# dig website1.Com
# dig website2.Com
# dig website3.Com
thirteen. Pindah listing ke /and many others/apache2/web sites-to be had
cd /and so forth/apache2/websites-to be had
cp 000-default.Conf 000-website1.Conf cp 000-default.Conf 000-website2.Conf cp 000-default.Conf 000-website3.Conf
14. % 000-website1.Conf
Edit baris berikut ini
ServerName www.website1.com ServerAlias website1.com ServerAdmin webmaster@localhost DocumentRoot /home/website1 <Directory /home/website1/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
15. P.C. 000-website2.Conf
Edit baris berikut ini
ServerName www.website2.com ServerAlias website2.com ServerAdmin webmaster@localhost DocumentRoot /home/website2 <Directory /home/website2/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
sixteen. % 000-website3.Conf
Edit baris berikut ini
ServerName www.website3.com ServerAlias website3.com ServerAdmin webmaster@localhost DocumentRoot /home/website3 <Directory /home/website3/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>17. Disable Virtualhost default dan enable Virtualhost yang baru di buat
Masuk ke console ketikan perintah berikut ini
# a2dissite 000-default.Conf # a2ensite 000-website1.Conf # a2ensite 000-website2.Conf # a2ensite 000-website3.Conf # /and many others/init.D/apache2 reload # /etc/init.D/apache2 restart
18. Membuat halaman index.Html pada masing masing direktory
# mkdir /home/website1 # mkdir /home/website2 # mkdir /home/website3
# p.C. /domestic/website1/index.Html
<h1>selamat datang website1</h1>
# p.C. /home/website2/index.Html
<h1>selamat datang website2</h1>
# p.C. /home/website3/index.Html
<h1>selamat datang website3</h1>19. Tambahkan user
adduser website1 adduser website2 adduser website320. Buka alamat domain menggunakan webbrowser.
www.Website1.Com www.Website2.Com www.Website3.Com21. Setelah itu akan tampil halaman html yang di buat tadi, jika ingin membuat halaman website yang lebih menarik bisa di pasang sebuah CMS pada direktory html di atas.
0 Response to "Cara Konfigurasi Share Hosting Server Dengan Bind9 Apache2 di Linux Debian"
Post a Comment