How to fix nginx "file not found" when running php-fpm in alpine image docker

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=RYLIY--iyCQ



Category:
Let's Play
Duration: 4:12
1,061 views
6


i installed nginx and php-fpm in apline image, and i created a file called index.php under /var/www/localhost/htdocs/, when i open on the browser, http://localhost:1166/index.php it shown an error : file not found

the issue is caused by your nginx configuration is bad.
this video will help you how to fix nginx configuration correctly




Other Videos By Ambar Hasbiyatmoko


2023-06-11Mengaktifkan logs pada Application Load Balancer (ALB) di Cloud AWS
2023-06-09Docker - Install nginx dan php-fpm7.3 di alpine image dan build container menjadi image baru
2023-06-07How to fix kubernetes error - pods is stuck on ContainerCreating, cni0 already has an IP address
2023-05-30How to fix php-fpm7.2 error in alpine container - The application environment is not set correctly
2023-05-21How to fix kubernetes v1.24.0 init error - failed to pull image k8s.gcr.io not found
2023-05-08Fixing kubernetes - couldn't reconcile node routes:error listing routes: unable to find route table
2023-05-07How to fix 'easy fancybox' plugin error in wordpress - jump to top of page after closing popup
2023-04-27How to install Epson L3210 printer driver in ubuntu 22.04
2023-04-18[Ubuntu 22.04] How to fix VLC error: your input can't be opened: VLC is unable open the MRL file.
2023-04-17How to fix: Bad magic number in super block while trying to open /dev/xvdf Couldn't find valid file
2023-03-23How to fix nginx "file not found" when running php-fpm in alpine image docker
2023-03-19fixing winbox - router does not supporrt secure connection, please enable Legacy Mode if you want
2023-02-05Membuat website (blog) dari 0 full ngoding - #part 5 (final) Beli domain, hosting, upload sourcecode
2023-01-28Membuat website (blog) dari 0 full ngoding - #part 4 Login dan pagination
2023-01-21How to disable php tracer datadog (ddtrace, datadog-profiling, ddappsec) in ubuntu
2023-01-20How to fix kenjis ci-phpunit-test error in Codeigniter 3 - Composer\InstalledVersions not found
2023-01-18How to fix kenjis ci-phpunit-test error in codeigniter 3 - strpos(): empty needle php
2023-01-07Fixing flutter doctor - android studio not installed, unable locate SDK, cmdline-tools is missing
2023-01-04Fix php-fpm: unable to bind listening socket for address php7.2-fpm sock: No such file or directory
2023-01-02How to fix flutter: Chrome - develop for the web (cannot find chrome executable at google-chrome)
2022-12-23Membuat website (blog) dari 0 full ngoding - #part 3 mengimport text editor Tinymce ke dlm dashboard



Tags:
docker
alpine
image
nginx
php
php-fpm
error
sock
fastcgi
htdocs
localhost
ubuntu
terminal
file not found
configuration
http
browser