Well, I'm trying to make this work on the past three days ago. So I think a little help from the forum will be necessary by now. Initially, I followed this tutorial, and it worked, but I was unable to access the sites by their domains (site1.dev and site2.dev), I had to type the IP address I used for each one of the domains, but when I was tipping "localhost" the Apache page was loading.
The situation now
After I revised all the configuration using this tutorial, the things got more messed up!
Now if I type "site1.dev" on Chrome or Firefox, I get this result immediately:
And the same when I type "site2.dev". But when I type "localhost", the HTML file on site1.dev is loading:
I think that I didn't understand which IP address to use on /etc/hosts. And if I have to edit the default-ssl.conf. Many tutorials and forum posts keep saying about the httpd.conf, but I can't find this file anywhere (I'm on Mint 19). So I will put my config files to explain better the things.
My files on /var/www
My /etc/hosts
The folders and files on /apache2 and the virtual host config for site1.dev
If you need more data just ask me. I'm doing all by the terminal though I'm more like an "advanced noob"
Thanks for your help!!!
.dev
domains for local development as these are actually full TLDs now. Consider using.localhost
instead.