小编use*_*455的帖子

为什么rails app显示/公共索引列表而不是实际的应用程序?

一旦它在服务器上,你如何设置apache来显示rails应用程序?我的rails应用程序在localhost上完美运行,但是当我访问外部站点时,它会为我提供索引信息

像这样

Name    Last modified   Size    Description
[TXT]   404.html    21-May-2012 21:38   728      
[TXT]   422.html    21-May-2012 21:38   711      
[TXT]   500.html    21-May-2012 21:38   643      
[IMG]   favicon.ico 21-May-2012 21:38   0    
[TXT]   robots.txt  21-May-2012 21:38   204      
Run Code Online (Sandbox Code Playgroud)

这是我的虚拟主机信息

<VirtualHost *:80>
      ServerAdmin example@example.com
      ServerName server.example.com
      # ServerAlias
      DocumentRoot /var/www/sample_app/current/public
      ErrorLog /var/www/sample_app/error.log

          RailsEnv production
        <Directory "/var/www/sample_app/current/public">
          Options Indexes FollowSymLinks MultiViews
          Order allow,deny
          Allow from all
        </Directory>
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)

apache ruby-on-rails virtualhost

3
推荐指数
1
解决办法
2369
查看次数

如何更改apache的默认tcp/ip端口

如何让apache使用端口3000而不是80来在外部服务器上的rails应用程序上运行我的ruby?

apache

2
推荐指数
2
解决办法
2万
查看次数

标签 统计

apache ×2

ruby-on-rails ×1

virtualhost ×1