Answer the question
In order to leave comments, you need to log in
How to connect PHPMyAdmin to Nginx in Docker?
I'm tinkering with Docker, I want to make a PHP server for development. It seems that PHP + NGINX + MySQL has adjusted everything, but I want to screw PHPMyAdmin. Now it opens for me conditionally at http://192.168.99.100:8080, and I want it to be 192.168.99.100/phpmyadmin
The third day I'm already dancing with a tambourine ...
GitHub
Answer the question
In order to leave comments, you need to log in
location ~* ^/phpmyadmin {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://192.168.99.100:8080;
proxy_redirect off;
proxy_buffering off;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question