【发布时间】:2012-09-21 02:06:03
【问题描述】:
我正在尝试在我的 apache/rails/phusion 乘客安装中允许子 url,以便我可以在顶层拥有 php 文件,然后在子目录(例如 blog)中使用 rails 应用程序:
我已经按照这里的文档:http://www.modrails.com/documentation/Users%20guide%20Apache.html#deploying_rails_to_sub_uri
这是我的 httpd.conf 虚拟主机条目:
<VirtualHost *:80>
ServerName xx.xx.xx.xx
DocumentRoot /var/www/html
<Directory /var/www/html>
Allow from all
</Directory>
RailsBaseURI /blog
<Directory /var/www/html/blog>
Options -MultiViews
</Directory>
</VirtualHost>
apache 用户拥有 /var/www/html,这是我的快捷链接: http://d.pr/i/aLkP 用 ln 命令制作
这是错误:http://d.pr/i/M3r4
【问题讨论】:
标签: ruby-on-rails apache centos passenger