ぽざうねっと

ホーム 連絡をする 同期する ( RSS 2.0 ) Login
投稿数  420  : 記事  0  : コメント  9430  : トラックバック  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

コメント

# KFSDEcPIzSsSADWhZpo 2011/11/28 19:58 http://www.instawares.com/food-storage.0.3.0.htm
Stupid article..!

# OYVvBXZwDcWkDDXuM 2011/12/12 18:48 http://www.birthcontrolremedy.com/birth-control/cl
Left on my site a link to this post. I think many people will be interested in it..!

# oksyAotDytSqBZidU 2011/12/16 0:27 http://www.upscalegallery.com/
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..!

# JemUZWAJbzfeh 2011/12/26 23:06 http://www.discreetpharmacist.com/ita/index.asp
Yeah, it is clear now !... From the very beginning I did not understand where was the connection with the title !!...

# vTywcjzOaDKFqJfYBjP 2011/12/27 6:07 http://www.hansensurf.com
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!...

# NpbODyiqCqxHpfETdt 2012/01/14 2:51 http://www.avidelectrical.com.au/
comment3

# IplKjZBuWpH 2012/01/14 2:53 http://www.michelegreenmd.com/
comment6

Post Feedback

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