Problem:
While developing on Rails 2.3.2 you want to deploy in dreamhost that uses 2.2.2 at the moment.
Solution:
Although we could try to freeze the specific rails version we are using, it’s probably easier as a temporary solution, until dreamhost upgrades the rails version to do the following:
*
错误:
1
[warn] _default_ VirtualHost overlap on port 80, the first has precedence
这个,大概意思就是后面新增加的这个VirtualHost 由于端口被占用,不能生效,沿用第一个虚拟主机的配置.
检查了一下,发现,原来在httpd.conf里,我没有把#NameVirtualHost *:80前的注释去掉,导致这个没有生效.
去掉#之后:
1
$ /usr/local/apache/bin/httpd -k restart