matriphe / docker-alpine-nginx Goto Github PK
View Code? Open in Web Editor NEWNginx web server build on Alpine docker image
Nginx web server build on Alpine docker image
Hello, I might be doing something wrong but would like some help if possible.
I'm running this image with the php-fpm.
I'm able to view html pages but whenever I try to run a php file a get "No input file specified.".
The nginx error log:
2016/09/17 02:27:36 [error] 7#0: *55 FastCGI sent in stderr: "Unable to open primary script: /usr/share/nginx/html/index.php (No such file or directory)" while reading response header from upstream, client: 172.17.0.1, server: _, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://172.17.0.5:9000", host: "localhost"
Thank you
Not sure why this is happening, I followed instructions to connect and start nginx and php (with docker run command) but I am getting this error:
2016/08/21 04:54:31 [error] 6#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 172.19.0.1, server: sabestetik.loc, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://172.19.0.3:9000", host: "sabestetik.loc"
I also tried to make docker-compose.yml
to connect and start nginx and php (which would be better way to start them than run
) but I got exactly the same message.
Being new to Docker I could not trace why is that happening although I am skilled with installing and maintaining servers, nginx and php.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.