如何创建自己的域而不是localhost:8888 MAMP
我使用osx
在httpd.conf中
我删除#
Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
inmy extra / httpd-vhosts.conf
NameVirtualHost *:8888
<VirtualHost *:8888>
DocumentRoot /Applications/MAMP/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *:8888>
DocumentRoot "/Applications/MAMP/htdocs"
ServerName me.dev
</VirtualHost>
我的mamp端口
Apache Port 8888
mginx port 8888
mysql port 8889
在我的etc / hosts
中127.0.0.1 localhost 255.255.255.255 broadcasthost :: 1 localhost
127.0.0.1 me.dev
然后我重启mamp
但我仍然无法使用me.dev/。我知道我做错了什么