0

众所周知,通过在 http.conf 中添加以下行,很容易让 Apache 将 .html 页面作为 PHP 页面处理: AddHandler application/x-httpd-php .php .html

如何在 OpenShift 中做到这一点?

如何在 OpenShift 中编辑 http.conf?

还是有其他方法?

4

2 回答 2

0

您是否尝试过使用 .htaccess 文件?尝试这个 stackoverflow 问题的答案,但使用 php 而不是 perl/python:perl on php application on openshift

于 2015-02-12T16:09:41.457 回答
0

这很简单,只需将以下行添加到所需的任何文件夹中的 .htaccess 中: AddHandler application/x-httpd-php .php .html

于 2015-02-12T18:37:03.610 回答