试图让我的服务器为我的 Rails 应用程序提供服务。
我安装了一个测试应用程序,已经安装了 apache2 和乘客我是否已将以下内容添加到 apache2.conf
# Include the virtual host configurations:
Include sites-enabled/
NameVirtualHost localhost:80
<VirtualHost localhost:80>
ServerName 192.168.1.67
DocumentRoot /home/john/Public/test-app
</VirtualHost>
显然,我误解了一些东西,因为我认为这应该将对我的本地 IP 的调用重定向到我的 rails 应用程序。它不是。它将转到默认的 apache index.html。
我究竟做错了什么?