我是Mac的新手,但长期使用Ubuntu进行开发。我知道如何在Ubuntu中创建虚拟主机,但对Mac一无所知。我创建了一个hosts条目,如下所示:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost mysite.loc
255.255.255.255 broadcasthost
::1 local
我正尝试在DigitalOcean服务器上部署我的ruby on rails应用程序。我使用Ubuntu14.04 x64,Passenger 5.0.10和Apache2进行部署。我学习了教程。当我试图在生产环境中运行我的应用程序时,我得到了这样的错误:“我们很抱歉,但是出了点问题。我们已经收到了关于这个问题的通知,我们很快就会看到这个问题。”我可以在开发环境中运行。
下面是Apache2的access.log:
"GET / HTTP/1.1" 403 495 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 1