{"id":1703,"date":"2017-10-04T10:35:33","date_gmt":"2017-10-04T15:35:33","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=1703"},"modified":"2017-10-04T10:35:33","modified_gmt":"2017-10-04T15:35:33","slug":"apache-http-sandbox-with-docker","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=1703","title":{"rendered":"Apache HTTP Sandbox With Docker"},"content":{"rendered":"<p>I set up a quick Apache HTTPD sandbox &#8212; primarily to test authentication configurations &#8212; in Docker today. It was an amazingly quick process.<\/p>\n<p>Install an image that has an Apache HTTPD server:\u00a0 \u00a0 docker pull httpd<br \/>\nCreate a local file system for Apache config files (c:\\docker\\httpd\\httpd.conf for main config, c:\\docker\\httpd\\conf.d for all of the extras like ssl.conf and php.conf, plus web sites), and c:\\docker\\httpd\\vhtml for the web site content)<br \/>\nLaunch the container:\u00a0docker run -detach &#8211;publish 80:80 &#8211;publish 443:443 &#8211;name ApacheWebServer &#8211;restart always -v \/c\/docker\/httpd\/httpd.conf:\/etc\/httpd\/conf\/httpd.conf:ro -v \/c\/docker\/httpd\/conf.d\/:\/etc\/httpd\/conf.d\/:ro -v \/c\/docker\/httpd\/vhtml\/:\/var\/www\/vhtml\/:ro httpd<\/p>\n<p>Shell into it (docker exec -it ApacheWebServer bash) to look around, or just access http:\/\/localhost from the Docker host.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I set up a quick Apache HTTPD sandbox &#8212; primarily to test authentication configurations &#8212; in Docker today. It was an amazingly quick process. Install an image that has an Apache HTTPD server:\u00a0 \u00a0 docker pull httpd Create a local file system for Apache config files (c:\\docker\\httpd\\httpd.conf for main config, c:\\docker\\httpd\\conf.d for all of the &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[31,231,352],"class_list":["post-1703","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-apache","tag-docker","tag-httpd"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1703"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1703\/revisions"}],"predecessor-version":[{"id":1704,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1703\/revisions\/1704"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}