Virtual Host with MAMP

旧巷老猫 提交于 2019-12-20 04:23:18

问题


I installed Drupal 8 with MAMP.
My MAMP preference number for Apache Port : 80 , Nginx Port: 80 and MySQL Port: 8889

In etc/hosts file, I add

127.0.0.1 mmcast.test

In httpd.conf file,

Listen 80 

and uncomment the following line.

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

In httpd-vhosts.conf file,

NameVirtualHost *:80

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

<VirtualHost *:80>
    ServerName mmcast.test
    DocumentRoot "/Applications/MAMP/htdocs/mmcast"
</VirtualHost>

When I call the site, I type mmcast.test:8888 and also try with mmcast.test:80.
However, nothing works! :(
Could someone help me please?
I've been trying this problem and still cannot solve.

来源:https://stackoverflow.com/questions/52510110/virtual-host-with-mamp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!