{"id":1370,"date":"2019-08-26T10:22:43","date_gmt":"2019-08-26T07:22:43","guid":{"rendered":"https:\/\/artem.services\/?p=1368"},"modified":"2019-08-26T10:29:18","modified_gmt":"2019-08-26T07:29:18","slug":"1370","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=1370&lang=en","title":{"rendered":"\u00a0Docker phpMyAdmin &#8212; Nginx reverse proxy"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"size-full wp-image-27 aligncenter\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Docker-Logo.png\" alt=\"\" width=\"1800\" height=\"531\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Docker-Logo.png 1800w, https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Docker-Logo-300x89.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Docker-Logo-768x227.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Docker-Logo-1024x302.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Docker-Logo-954x281.png 954w, https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Docker-Logo-1354x399.png 1354w\" sizes=\"(max-width: 1800px) 100vw, 1800px\" \/><\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">For a container with <strong>phpMyAdmin<\/strong>, you need to add a variable with an absolute path:<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nPMA_ABSOLUTE_URI: &quot;https:\/\/artem.services\/phpmyadmin&quot;\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">The &quot;<strong>location<\/strong>&quot; block for <strong>Nginx<\/strong> (change the proxy path to yours):<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n    location  ~ \\\/phpmyadmin {\r\n        rewrite ^\/phpmyadmin(\/.*)$ $1 break;\r\n        proxy_set_header X-Real-IP  $remote_addr;\r\n        proxy_set_header X-Forwarded-For $remote_addr;\r\n        proxy_set_header Host $host;\r\n        proxy_pass http:\/\/localhost:8080;\r\n    }\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">Now <strong>phpMyAdmin<\/strong> will be available along the path:<\/span><\/span><\/p>\n<blockquote><p>https:\/\/artem.services\/phpmyadmin\/<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>For a container with phpMyAdmin, you need to add a variable with an absolute path: &nbsp; &nbsp; The &quot;location&quot; block for Nginx (change the proxy path to yours): &nbsp; Now phpMyAdmin will be available along the path: https:\/\/artem.services\/phpmyadmin\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[975],"tags":[771,345,997,497],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1370"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1370"}],"version-history":[{"count":2,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1370\/revisions"}],"predecessor-version":[{"id":1372,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1370\/revisions\/1372"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}