0

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?

Lyndon
  • 573
  • 6
  • 24
  • Take a look here: https://forums.openshift.com/need-to-edit-httpdconf – Dimas Pante Feb 12 '15 at 11:49
  • Thanks Dimas but I've already searched extensively on the web and found this topic. But most importantly, it does NOT answer the question. – Lyndon Feb 12 '15 at 12:26

2 Answers2

0

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

Community
  • 1
  • 1
0

It's easy, just add the following line to your .htaccess in any folders that it is required: AddHandler application/x-httpd-php .php .html

Lyndon
  • 573
  • 6
  • 24