How to create virtual hosts in MAMP?

后端 未结 6 1138
我寻月下人不归
我寻月下人不归 2020-12-05 00:35

I am new to Mac but used Ubuntu for development for a long time. I know how to create virtual hosts in Ubuntu but have no idea about Mac. I have created a hosts

6条回答
  •  北海茫月
    2020-12-05 01:05

    Adding to the answer of Ritesh

    You probably also want to add a directory configuration in your httpd.conf similar to the one that is already there, but for your the document root of your new server.

    For Example:

    
        Options All
        AllowOverride All
        Order allow,deny
        Allow from all
        XSendFilePath "/Users/username/Sites/mysite"
    
    

提交回复
热议问题