ぽざうねっと

ホーム 連絡をする 同期する ( RSS 2.0 ) Login
投稿数  420  : 記事  0  : コメント  9501  : トラックバック  76

ニュース

さて、今年は何を漬けようか

書庫

日記カテゴリ

Accessory

Community

Private

自宅のサーバに rails アプリを稼働させようとして、passenger の設定をしていた。
SSL で使いたかったので、httpd.conf の設定後に、/etc/httpd/conf.d/ssl.conf を編集。
<VirtualHost *:443>
ServerName [server_name]
DocumentRoot /var/www/rails/app/public
CustomLog /var/log/httpd/rails/app/ssl-access.log combined
ErrorLog /var/log/httpd/rails/app/ssl-error.log
RailsBaseURI /app

SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/server.crt
SSLCertificateKeyFile /etc/pki/tls/certs/server.key
</VirtualHost>

こんな設定を追加して https://server/app にアクセスしたのだが、表示されない。
apache 再起動時に、_default_ VirtualHost overlap on port 443, the first has precedence ってのが表示されていたので、設定がぶつかってるようだ。
というわけで、ssl.conf から既存の VirtualHost 設定をばっさり削除。
これでアクセスできるかと思いきや、500エラーがでる。
ログを見ると passenger が 「/config/environment.rb なんてないよ」ってエラーを吐いている。
どうやらアプリケーションのルートを見つける事ができていないみたいだ。
試しに RailsBaseURI を / にしてみると https://server/ で表示される。
ルートでは別のアプリを今後動かす予定なので、これはまずい。
RailsBaseURI がきかないとは何か設定が足りないのだろうか?
今日はここまで、明日また調べる。
投稿日時 : 2009年1月21日 1:19

コメント

Stupid article..!

Left on my site a link to this post. I think many people will be interested in it..!

I was looking for the report in Yandex and suddenly came across this page. I found a little information on my topic of my report. I would like more, and thanks for that..!

Yeah, it is clear now !... From the very beginning I did not understand where was the connection with the title !!...

I`m so grateful that you enlightened me and the most important thing that it happened in time. Just think, I have been using the internet for six years already but it`s the first time I`ve ever heard about it!...

comment3

comment6

Post Feedback

タイトル
名前
Url:
コメント: