Ruby on Rails のアプリを公開するときの設定
/DocumentRootで検索し、定義の最後に
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot /usr/local/rails/apri/public
このように、DocumentRoot /usr/local/rails/apri/publicを追加。
その後、apacheを再起動します。
[root@fedora ~]# /etc/rc.d/init.d/httpd restart
httpd を停止中: [ OK ]
httpd を起動中: [ OK ]
:3000を付けなくてもRuby on Railsのアプリケーションが起動しているところがポイントです。これでApacheでPassengerを使ってRuby on Railsアプリ公開ができました。