skip to Main Content

I’ve got a Laravel project called “test” running on MAMP on my mac. I’ve uncommented the vhosts include line in httpd.conf and included this below in the vhosts file:

<VirtualHost *:80>
    DocumentRoot "/Applications/MAMP/htdocs"
    ServerName localhost
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "/Applications/MAMP/htdocs/test/public"
    ServerName testapp.dev
</VirtualHost>

When I go to “testapp.dev” in my browser it just says the old

testapp.dev’s server IP address could not be found.
DNS_PROBE_FINISHED_NXDOMAIN

I’m not sure if I’ve missed something or what. Thanks in advance for your help! 🙂

(This is a repost but more clear)

2

Answers


  1. Chosen as BEST ANSWER

    So I ditched MAMP and used valet. I had some problems with that just going to localhost which was some random background apache server which I stopped and then everything worked! :)


  2. if you are using windows edit C:windowssystem32driversetchosts and if you are using unix edit /etc/hosts file and add this row at the end of file:

    127.0.0.1 testapp.dev

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search