1. Aktifkan dahulu Virtual host
Buka file :/Applications/XAMPP/xamppfiles/etc/httpd.conf
Ubah Kode berikut :# Virtual hosts
# Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf
Menjadi :# Virtual hosts
Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf
2. Buat Virtual Host
Buka file berikut :/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf
Tambah kode berikut di akhir paragraf< VirtualHost *:80>
ServerAdmin admin@webaing.com
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/folder_web_mu"
ServerName webaing.com
ServerAlias webaing.com
ErrorLog logs/webaing.com.log
CustomLog logs/webaing.com.log combined
<Directory "/Applications/XAMPP/xamppfiles/htdocs/folder_web_mu">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
< / Directory>
< / VirtualHost>
3. Ubah file host
sudo nano /etc/hosts
### Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
::1 nama_web_mu
Komentar
Posting Komentar