I am migrating from Windows 10 platform running Wampserver with PHP 7.4 to Ubuntu 21.04.
I have been reading and reading, and am now confused.
I have three websites that I created under /var/www - site 1, site 2, site 3 on my Ubuntu computer ( all Ubuntu - no dual environment)
I wanted to create a virtual host for each one i.e. site1.com, site 2.com site3.com
In all the examples I have seen, the examples create a .com under public_html.
I find this confusing. Does that mean I need to move my websites to there instead of having them at /var/www ? I want to be able to execute my apps in each website.
In windows, these websites were under wamp/www/site1 etc.
And I executed the app I wanted by using: http://localhost:8081/site1/some.php
How does all this tie together ? Can they all three used 80 ??
I understand that I need to create a site1.com,conf file etc.
i do not find a public_html folder. But as I understand it, I can use home/USER/public_html.
I do nit have a public_html in there either. Is that a folder I need to create ? And then should I place my websites there instead of /var/www ??
Could someone explain it to me ?
Thank you for any help - it is appreciated.