Add Domain
First go to localhost/ampps .
In Enduser Panel, Click on Add Domain as you can see in screenshot.

Addon or Parked
Domain can be of two types:
Addon
Enter the Domain Name, select the addon and enter the domain path.

Parked
Enter the Domain Name, select the parked and select the domain on which you want to park.

Finish
After entering the details, click on the "Add Domain" button for adding a domain.

Successfully Added a Domain
On Successfully Adding a domain you will see a message as shown below.

Add domain to Host file
For windows go to path C:\Windows\System32\drivers\etc and open hosts file.
For macOS go to path /etc/hosts and open hosts file.
Add domain name and domain address in hosts file at end of file as example given below.
127.0.0.1 test.com
Note: Please verify if Apache has been restarted, if not please restart it as shown below.

If you face any issues, please open a Support ticket with us.