我对 apache vhost 有疑问。我正在运行rails 2.0.2
应用程序centos6
。该应用程序正在Webrick 服务器上运行。现在我已经在 apache 中设置了虚拟主机,但问题是应用程序不在端口 80上运行。但它在除 80 之外的所有其他端口上运行。
应该是什么原因?
以下是我app.conf
文件中的代码-
/etc/httpd/sites-enabled/app.conf
Listen 80
<VirtualHost *:80>
DocumentRoot /var/www/app/public
ServerName www.domainname.com
ServerAlias domainname.com
ErrorLog /var/log/httpd/app/error.log
CustomLog /var/log/httpd/app/access.log common
<Directory /var/www/app/public>
Allow from all
Options -MultiViews
</Directory>
</VirtualHost>
我已通过以下语句将此app.conf
文件包含在我的文件中。httpd.conf
Include sites-enabled/*.conf
请建议我是否在app.conf和httpd.conf文件中都缺少某些内容。它非常紧迫。
提前致谢!