Comments (6)
@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.
from docker-for-local-development.
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.
from docker-for-local-development.
That's odd. Do you have the code in a GitHub repository?
from docker-for-local-development.
I think you can reproduce the problem with a simple html file containing a call to phpinfo.
from docker-for-local-development.
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.
from docker-for-local-development.
Thanks @omatrot
from docker-for-local-development.
Related Issues (8)
- Cannot create container for service php: An error occured while sharing drive HOT 2
- Simple way to map localhost:8080 to a custom hostname?
- Cannot start service nginx, mount caused "not a directory" [Win10 / virtualbox] HOT 7
- File not found. HOT 7
- Directory Index fails HOT 11
- Is Step 2 mandatory ? HOT 1
- What is the purpose of the testing container ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-for-local-development.