XAMPP: Change localhost to custom domain name

For windows developers [default disk: C]:
Example: www.mysite.tst instead of localhost/mysite.
Step 1: Go to C:\Windows\System32\drivers\etc and edit “as Administrator” => hosts file.
Add in end of file:

127.0.0.1	mysite.tst

Save and close.

Step 2: Go to C:\xampp\apache\conf\extra and edit httpd-vhosts.conf file.
Add in end of file:

<VirtualHost *:80>
    ServerName www.mysite.tst
    ServerAlias mysite.tst
    DocumentRoot c:/xampp/htdocs/mysite
</VirtualHost>

Save and close.

Final step…
Continue reading XAMPP: Change localhost to custom domain name