Ruby Enterprise Edition + Passenger �����Ă݂܂����B
�C���X�g�[�����@��A���ʂɂ��Ă͑�R�̕������y���Ă���悤�Ȃ̂Ŋ��������Ă��炢�܂��B
��������肪���������̂őΉ�����B
��connection error ������
�m�F�̂��߃T�C�g�����Ă���ƁA���Ɉ��
Mysql::Error: Lost connection to MySQL server during query
�Ƃ����G���[���o���B
gem install mysql
�ʼn���
��mod_rewrite�Ƃ̕��p
�������̂́Amod_rewrite�Ɋւ��āB
virtualhost�Ɉȉ���ݒ肵�ē���������ł����Arewrite�������ĂȂ��͗l�B�B�B
PassengerHighPerformance on
PassengerMaxPoolSize 30
PassengerMaxInstancesPerApp 0
PassengerPoolIdleTime 300
PassengerMaxRequests 0
<VirtualHost *:80>
ServerName rails.sample.jp
DocumentRoot /path-to-rails/public
<Directory "/path-to-rails/public">
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
RailsAllowModRewrite on
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f
RewriteCond %{REMOTE_ADDR} !^192\.168\.
RewriteRule . /maintenance.html [L]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ /%{REQUEST_URI} [P,QSA,L]
ProxyRequests Off
ErrorLog "|/usr/sbin/rotatelogs /var/log/apache2/rails.sample.jp_error.log.%Y%m%d 86400 540"
LogLevel warn
CustomLog "|/usr/sbin/rotatelogs /var/log/apache2/rails.sample.jp_access.log.%Y%m%d 86400 540" combined
ServerSignature Off
</VirtualHost>
Phusion Passenger users guide�����ɏ����Ă���ʂ�B
�wPassengerHighPerformance�x��off�ɂ��Ȃ��ƁAmod_rewrite�͓��삵�Ȃ��B
�p�����[�^���Ɋ��҂��āA�����won�x�ɂ��Ă��܂������ׂ��
posted by ���傤�� at 16:14|
Comment(28)
|
TrackBack(1)
|
��
|
|