dtrj74376 2014-05-04 14:32
浏览 58

我的Heroku静态站点打破了新的PHP系统

I have a static site running on Heroku. Up to now I have had an empty index.php alongside my index.html, and with php_flag engine off in .htaccess, everything ran smoothly. Heroku detected a PHP app but didn't run PHP for anything; index.html files took precedence.

Now with the switch to the new PHP system, I have been unable to get my static site working. It seems that the php_flag engine off is causing an Internal Server Error, but if I remove that then the server can't find index.php, so I get File Not Found. So I renamed all of my index.html files to index.php, but then the internal links in my site introduce a port for some reason (i.e. example.com/foo becomes example.com:22481/foo), so none of the links work.

What I'm trying to say is,

WHAT IS GOING ON PLEASE HELP

  • 写回答

1条回答 默认 最新

  • douchao5864 2014-05-06 07:13
    关注

    Try again; an update was released earlier that addresses this issue.

    The new buildpack uses PHP via FastCGI; no need to set engine off anymore as there's no real overhead. The flag isn't supported anymore as it only works

    评论

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么