Set up multiple sites on local machine

Hello.

I have successfully installed Hestia on my raspberry pi, which is running Ubuntu server, and is configured for internal access on domain dev.local

If I go to cp.dev.local my site loads.

I added a second site test.dev.local. If I ping this it works but no matter what I try the site is not accessible.

I created the site with and without creating a separate DNS but nothing is working.

Anyone who could kindly assist me please?
Thank you
Stephen

Or nano /etc/hosts on (L)unix based systems

ip test.dev.local

Thank you.

So if I need to do this in the hosts file, is it worth using a panel for a local development server? I just assumed using a panel I would have an easy to use GUI for setting up my sub domains and test sites etc.

Sorry I am new to all this.
Thanks
Stephen

For setting up subdomain you need to use DNS or change hosts file.