By editing host file we can do the following:
1. Can put a custom url for your localhost projects
2. can access your old project from the cpanel with ip addess & current domain

Example:
35.222.133.70 bigotires3road.ca https://bigotires3road.ca
35.222.133.70 bigotiresbroadway.ca https://bigotiresbroadway.ca

Edit host file in linux:
open terminal
Type: sudo vim /etc/hosts
Enter the password when it asks
Shift+E to write mode
Change/Write
Press Escape button (ESC)
😡 to save & exit