docker-for-local-development icon indicating copy to clipboard operation
docker-for-local-development copied to clipboard

With this setup, php code in html files is not processed

Open omatrot opened this issue 7 years ago • 6 comments

How do we solve that ?

omatrot avatar Jul 12 '17 07:07 omatrot

@omatrot I don't quite understand what you're asking. The configuration will allow you to drop in a simple PHP application and run it. It will run PHP in HTML files; not that that's a good idea.

settermjd avatar Jul 13 '17 15:07 settermjd

I'm sorry but with my application it does not process php code in html files. Only in .php ones. The HTML files are sent as is to the browser, so I can see the php code in Chrome's source debugger.

omatrot avatar Jul 13 '17 15:07 omatrot

That's odd. Do you have the code in a GitHub repository?

settermjd avatar Jul 14 '17 06:07 settermjd

I think you can reproduce the problem with a simple html file containing a call to phpinfo.

omatrot avatar Jul 14 '17 10:07 omatrot

The problem could be solved with the too steps detailed in this answer. The nginx default configuration file and the php configuration file should be modified accordingly. I'll prepare a pull request for you.

omatrot avatar Jul 17 '17 12:07 omatrot

Thanks @omatrot

settermjd avatar Jul 18 '17 13:07 settermjd