0
我的rails 3.2.8
應用程序正在使用ruby1.8.7
並且運行完美。最近,我將ruby
版本升級到1.9.3
,導致服務器崩潰。我更新了所有的寶石,以便與ruby的最新版本兼容。但從那時起,apache並沒有運行我的應用程序。如果我運行rails webrick服務器,可以使用IP地址和端口訪問站點。但由於Apache的配置似乎不正確,因此無法使用域名進行訪問。之前很好,我沒有改變它或什麼。我剛剛升級了Ruby。任何人都知道我在這裏錯過了什麼?請幫忙。升級紅寶石形式1.8.7到1.9.3導致服務器崩潰
apache配置文件如下。
apache2.conf
LockFile ${APACHE_LOCK_DIR}/accept.lock
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_worker_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_event_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy all
</Files>
DefaultType None
HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
Include mods-enabled/*.load
Include mods-enabled/*.conf
Include httpd.conf
Include ports.conf
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r..
test.myapplication.com
<VirtualHost *:80>
ServerName test.myapplication.com
ServerAlias XX.XX.XX.X/mytest
DocumentRoot /home/XXXX/public_html/public
ErrorLog /var/log/apache2/XXXXX_errors.log
LogLevel warn
CustomLog /var/log/apache2/XXXXX_access.log combined
SetEnv RAILS_ENV production
<Directory /home/XXXXX/public_html/public>
Allow from all
Options -MultiViews
</Directory>
</VirtualHost>
你能告訴我們你的Ruby應用程序日誌,所以我們可以看到是什麼原因導致碰撞 ? – Intrepidd 2013-03-04 13:48:13
其實,'生產日誌裏沒有什麼東西' – 2013-03-04 13:51:03
而且在你的apache日誌裏? – Intrepidd 2013-03-04 14:03:06