<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>wjlight (niweijian)</title>
    <link>https://ruby-china.org/wjlight</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>[已解决] apache +passenger 发布 rails 应用，出现 404</title>
      <description>&lt;p&gt;启动 mongrel 跑 rails，在浏览器中输入&lt;a href="http://ip:3000/controller/" rel="nofollow" target="_blank"&gt;http://ip:3000/controller/&lt;/a&gt;可以正常工作&lt;/p&gt;

&lt;p&gt;但是，使用 apache 启动后，在 public 中的 index.html 应该是该目录下所有 html 都可以访问到，除了这些其他的任意路径都返回 404，如在浏览器中输入&lt;a href="http://ip/controller/,404" rel="nofollow" target="_blank"&gt;http://ip/controller/,404&lt;/a&gt;返回 
url /controller not found in this server&lt;/p&gt;

&lt;p&gt;感觉只能访问静态页面，rails 相关的东西都没法用，&lt;/p&gt;

&lt;p&gt;请问这是怎么回事啊？&lt;/p&gt;</description>
      <author>wjlight</author>
      <pubDate>Tue, 08 Jan 2013 23:27:53 +0800</pubDate>
      <link>https://ruby-china.org/topics/7891</link>
      <guid>https://ruby-china.org/topics/7891</guid>
    </item>
  </channel>
</rss>
