-1

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:

Result

And the same when I type "site2.dev". But when I type "localhost", the HTML file on site1.dev is loading:

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 files on /var/www

My /etc/hosts

My /etc/hosts

The folders and files on /apache2 and the virtual host config for site1.dev

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!!!

11
  • 1
    You shouldn't be using .dev domains for local development as these are actually full TLDs now. Consider using .localhost instead.
    – Burgi
    May 1, 2019 at 16:01
  • Allright. Can I use just "site1", nothing more?
    – FabioB
    May 1, 2019 at 16:06
  • I didn't understand why my question was flagged as "unclear"
    – FabioB
    May 1, 2019 at 16:07
  • I don't see any flags associated with this question.
    – Burgi
    May 1, 2019 at 16:12
  • I'm saying that because my question was voted down.
    – FabioB
    May 1, 2019 at 16:14

1 Answer 1

1

As Burgi said on the comments, I just changed from .dev to .localhost (resetting the permissions and editing new .conf files) and now everything is working great!

Thank you all!!!

1
  • 1
    You could also be using site1.test - the .test TLD is reserved for such use.
    – ivanivan
    May 1, 2019 at 17:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .