Virtual hosts not working on MAMP

后端 未结 8 1393
被撕碎了的回忆
被撕碎了的回忆 2021-01-12 04:25

I am running into virtual hosts setup issues on MAMP. Here is my vhosts config

相关标签:
8条回答
  • 2021-01-12 05:10

    I'm not an apache expert. But I had the same problem. I think my DNS doesn't resolve my URL. When I ping exampl.dev everything looks fine, but when I enter example.dev in the browser I get an error. I always have to add http:// in front of the url.

    0 讨论(0)
  • 2021-01-12 05:13

    Enable virtual host in the right httpd.conf Open MAMP > File > Edit template > Apache > httpd.conf

    edit or add:

    # Virtual hosts
    Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
    

    edit mamp httpd.conf

    0 讨论(0)
提交回复
热议问题