我正在读一本关于“Ruby on Rails”的书,现在我必须使用Apache和Passenger部署我的应用程序。一切似乎正确安装,但是当我终于添加以下代码在Apache的配置文件:Ruby on rails - Apache配置文件错误
<VirtualHost *:80>
ServerName depot.yourhost.com
DocumentRoot /home/gotqn/Aptana Projects/depot/public/
<Directory /home/gotqn/Aptana Projects/depot/public>
AllowOverride all
Options -MultiViews
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
,并尝试重新启动Apache:
$ sudo apachectl restart
我收到以下错误:
Syntax error on line 245 of /etc/apache2/apache2.conf:
DocumentRoot takes one argument, Root directory of the document tree
Action 'restart' failed.
The Apache error log may have more information.
线路245是指在下面的行:
DocumentRoot /home/gotqn/Aptana Projects/depot/public/
任何想法我做错了什么?