Kaskus

Tech

InternsialNodeAvatar border
TS
InternsialNode
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 30-06-2020 19:19
0
253
3
GuestAvatar border
Komentar yang asik ya
Urutan
Terbaru
Terlama
GuestAvatar border
Komentar yang asik ya
Komunitas Pilihan