Saturday, June 4, 2016

merubah domain localhost

merubah domain localhost
Di Posting Oleh : Wandi febriandi
Kategori : Pelajaran Pemprograman web

Selamat datang kawan kawan di blog saya yang sederhana ini . Sebelumnya saya mau tanya bagaimana kabarnya kawan ? mudah mudahan sehat , amin . Di artikel sebelumnya saya telah berbagi mengenai tips ngabuburit versi agan ini . Di artikel sebelumnya juga saya telah berbagi mengenai PHP cara upload dan memasukanya kedalam database .



Oke sekarang saya akan berbagi cara merubah nama domain localhost jadi yang kita ingin kan . Oke gak perlu perlama lama lagi lagung aja yang pertama kawan kawan . buka windows explorer , kemudian akses alamat ini C:\Windows\System32\drivers\etc . Oke disana ada file namanya host kawan kawan edit pake notepad++ .

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1       localhost
# ::1             localhost

127.0.0.1 localhost

Nah ini defaultnya , kita sekarang kita akan menambahkan domain jadi yang kita kehendak tambahkan tulisan dibawah jadi yang kalian kehendaki , misalnya saya koding.com . seperti di bawah ini contohnya

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1       localhost
# ::1             localhost

127.0.0.1 localhost
127.0.0.1 koding.com

Oke jika sudah kawan kawan save dan coba ketik koding.com , kalo yang saya . Maka kita akan di arahkan ke localhost kita .

Oke itu dia tips sederhana dari saya . Semoga bermanfaat dan juga mungkin sekarang kawan kawan gak bosan lihat localhost terus karena sekarang jadi koding.com kalo yang saya . Terimakasih telah berkenan membaca artikel ini . Sampai jumpa di artikel yang lainnya yang lebih menarik dan juga lebih bermanfaaat .

Silahkan kunjungi blog terbaru saya disini

No comments:

Post a Comment