网站在Google App Engine上引发服务器错误500(日志代码:204)

时间:2013-11-11 19:31:48

标签: google-app-engine

网站在通过我的域访问时抛出服务器错误500(服务器日志:错误代码204),尽管它在我的开发服务器上运行良好。

其次,开发服务器不与数据库通信。我不知道为什么,但它连接虽然不查询。

我正在使用php。它还在预览中。

编辑: 这是来自app.yaml文件的示例

- url: /contactus/.*
  script: contactus.php
- url: .*
  script: main.php

当我尝试去“/”时它完全有效。但是当我尝试/ aboutus /它只会在GAE站点中抛出500服务器错误。

示例代码

define("pageName", "About Us");
require_once("header.php");
?>
<!--HEADER-->
    <section>
    </section>
    <article>
    </article>
<!--FOOTER-->
<?php
require_once("footer.php");
?>

来自服务器日志的错误消息

 2013-11-11 03:04:00.313

This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.

W 2013-11-11 03:04:00.313

A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used 

main.php也有相同的代码,但它的工作原理。

0 个答案:

没有答案