Buka file httpd-vhosts.conf yang berada di:
C:\xampp\apache\conf\extra
Buka perintah untuk localhost, dan tambahkan domainName.test sesuai folder yang dituju
### ### ###
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
</VirtualHost>
### PERSONAL ###
<VirtualHost *:80>
# ServerAdmin [email protected]
DocumentRoot "C:/xampp/htdocs/domainName/public_html"
ServerName domainName.test
ServerAlias www.domainName.test
</VirtualHost>
### BISNIS ###
### ORGANISASI ###
### OFFICE ###
### KONSUMEN ###
### ### ###
Buka file hosts yang berada di:
C:\Windows\System32\drivers\etc
Tambahkan domainName.test ditujukan ke IP localhost
### LOCAL ###
127.0.0.1 localhost
### PERSONAL ###
127.0.0.1 domainName.test
127.0.0.1 www.domainName.test
### BISNIS ###
### ORGANISASI ###
### OFFICE ###
### KONSUMEN ###
### APLIKASI ###