Virtual hosts not working on MAMP

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

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

8条回答
  •  有刺的猬
    2021-01-12 04:50

    I had a similar issue with MAMP Pro 5 (after updating from version 4). One of my custom host with aliases was returning a 404 NOT FOUND error.

    After a LONG troubleshoot, make sure to add the domain in the alias list.

    MAMP 4

    host:

    test.co
    

    alias:

    sub.test.co
    

    Becomes in MAMP 5:

    host:

    test.co
    

    alias:

    sub.test.co
    test.co
    

    Hope they'll get that fixed and that it helps someone!

提交回复
热议问题