CARI
KATEGORI
KATEGORI
Home / FORUM / All / Tech / Computer Stuff /
Cara membuat domain di localhost
KASKUS
51
244
https://www.kaskus.co.id/thread/5efb2af2349d0f161378456e/cara-membuat-domain-di-localhost

Cara membuat domain di localhost

Hai para kaskuser
nih thread aku ambil di naskah video di word windows kesayangan ane...

Oke, kita bahas aja
Pertama buka Windows Explorer, kemudian akses alamat ini oke bukan alamat rumah : C:\WINDOWS\system32\drivers\etc. Setelah dibuka maka akan menemukan beberapa file antara lain : host, lmhost, networks, protocol, dan services.



Edit file host pakai notepad++ ? atau file editor lain atau apa lah.... nano, atom dll. Setelah dibuka akan muncul text default :

# Copyright (c) 1993-1999 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

127.0.0.1 localhost

Setelah file tersebut dibuka tambahkan baris di bawah tulisan "127.0.0.1 localhost" sesuai dengan nama domain yang dikehendaki misal domainyangkaskuserharapkan.com. Jadi file tersebut setelah ditambahkan akan menjadi seperti ini :

# Copyright (c) 1993-1999 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

127.0.0.1 localhost
127.0.0.1 domainyangkaskuserharapkan.com

Setelah itu simpan atau Ctrl+S. Kemudian buka browser dan ketikkan domainyangkaskuserharapkan.com maka akan diarahkan ke localhost kita emoticon-Big Grin.
setahu gua nih trik berlaku di windows.... di linux kayaknya belum deh

tonton video ini oke..... https://bit.ly/ubah_localhost_jadi_domain
emoticon-Wowemoticon-Wowemoticon-Wow
Diubah oleh InternsialNode
thread receh,,
not recomended🚫
Lihat 2 balasan


GDP Network
© 2020 KASKUS, PT Darta Media Indonesia. All rights reserved
Ikuti KASKUS di