Search code examples
phpapacheopenshifthttpd.confaddhandler

OpenShift PHP with .html Extension


As we know, it is easy to get Apache to handle .html pages as PHP pages by adding the following line to http.conf: AddHandler application/x-httpd-php .php .html

How can this be done in OpenShift?

How can I edit http.conf in OpenShift?

Or is there another way?


Solution

  • Have you tried using a .htaccess file? Try the answer from this stackoverflow question, but use php instead of perl/python: perl on php application on openshift