脚本头premature结束 - 的Rails [英] Premature end of script headers -- Rails

查看:131
本文介绍了脚本头premature结束 - 的Rails的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装所有宝石后获得500内部服务器错误。有人说,它与内存使用的事,但我在29%

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%

这是我的虚拟主机

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>

是否code以上需要是在虚拟主机的特定位置?有没有别的东西,我需要补充的吗?

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

推荐答案

原来我不得不删除在/ etc / apache2的/网站的可用/默认,并创建自己的

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

这篇关于脚本头premature结束 - 的Rails的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆