biar browser bisa buka misal
sudah bisa buka : www.pasarminggu.com
juga pengin bisa buka dengan pasarminggu.com
di address bar browser maka yang disetting ada di dns
contoh dns : di IN A 180.121.241.4
ada di /var/named/barnews.com
----------------------------------------------------------------------------------
$TTL 604800
@ IN SOA ns1.pasarminggu.com. hostmaster.ns1.pasarminggu.com. (
2000052210 ; serial
3600 ; refresh
900 ; retry
1209600 ; expire
43200 ; default_ttl
)
IN A 180.121.241.4
NS ns1.pasarminggu.com.
NS ns2.pasarminggu.com.
IN MX 1 mail.pasarminggu.com.
localhost A 127.0.0.1
ns1 IN A 180.121.241.10
ns2 IN A 202.142.223.53
mail IN A 180.121.241.14
www IN A 180.121.241.4
----------------------------------------------------------------
sama dengan setting di apache
/etc/httpd/extra/httpd-vhosts.confdi default hostnya diarahin yg sama di documenrootnya:
<VirtualHost *:80>
ServerAdmin webmaster@pasarminggu.com
DocumentRoot "/DOMAIN/www.pasarminggu.com/html"
ServerName pasarminggu.com
<Directory "/DOMAIN/www.pasarminggu.com/html">
Options Indexes FollowSymLinks
#AllowOverride None
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
ServerAdmin webmaster@ips.co.id
DocumentRoot "/DOMAIN/www.pasarminggu.com/html"
ServerName www.pasarminggu.com
ErrorLog "/LOG/www.pasarminggu.com/error_log"
CustomLog "/LOG/www.pasarminggu.com/custom_log" common
TransferLog "/LOG/www.pasarminggu.com/transfer_log"
<Directory "/DOMAIN/www.pasarminggu.com/html">
Options Indexes FollowSymLinks
#AllowOverride None
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Tidak ada komentar:
Posting Komentar