我正在尝试在我的 Macbook Pro 上设置 MAMP,但我似乎无法运行虚拟主机。这是我在这方面的第一次尝试。我来自 WAMP/Windows 7 环境,所以我可能忽略了一些东西。我已经按照 MAMP 网站上的指南,以及从 Google 搜索中呈现的其他几个指南,但无济于事......
我的 /etc/hosts:
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
127.0.0.1 robabby
我的 httpd-vhosts.conf:
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
DocumentRoot "/Users/admin/Development/websites/robabby"
ServerName robabby
</VirtualHost>
我按照 MAMP GUI 设置新主机。
将我的浏览器指向 robabby:80,我得到一个ERROR: 500 (internal server error)
非常感谢任何帮助...