众所周知,通过在 http.conf 中添加以下行,很容易让 Apache 将 .html 页面作为 PHP 页面处理: AddHandler application/x-httpd-php .php .html
如何在 OpenShift 中做到这一点?
如何在 OpenShift 中编辑 http.conf?
还是有其他方法?
众所周知,通过在 http.conf 中添加以下行,很容易让 Apache 将 .html 页面作为 PHP 页面处理: AddHandler application/x-httpd-php .php .html
如何在 OpenShift 中做到这一点?
如何在 OpenShift 中编辑 http.conf?
还是有其他方法?
您是否尝试过使用 .htaccess 文件?尝试这个 stackoverflow 问题的答案,但使用 php 而不是 perl/python:perl on php application on openshift
这很简单,只需将以下行添加到所需的任何文件夹中的 .htaccess 中: AddHandler application/x-httpd-php .php .html