Premature end of script headers — Rails

半腔热情 提交于 2019-12-23 23:14:02

问题


I am getting 500 internal server error after installing all gems. Some people say it has to do with memory usage, but I am at 29%

This is my vhost

VirtualHost *:80>
      ServerAdmin examplea@example.com
      ServerName 0.0.0.0
      # ServerAlias
      DocumentRoot /var/www/sample_app/current/public
      ErrorLog /var/www/sample_app/error.log

          RailsEnv production
        <Directory "/var/www/sample_app/current/public">
          Options Indexes FollowSymLinks MultiViews
          Order allow,deny
          Allow from all
        </Directory>
</VirtualHost>

Does the code above need to be in a specific location in the vhost? Is there something else I need to add?


回答1:


Are you sure passenger is installed/enabled properly?

post your stack traces




回答2:


It turns out I had to delete the /etc/apache2/sites-available/default and create my own



来源:https://stackoverflow.com/questions/10732765/premature-end-of-script-headers-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!