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:	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

Save and close.

Final step…

Restart XAMPP(Click “Stop” and after that “Start” in Apache section). Open in your browser http://mysite.tst

Thats all.

Its a simple way for xampp for add new host
Happy codding!