{"id":591,"date":"2019-04-11T12:48:56","date_gmt":"2019-04-11T10:48:56","guid":{"rendered":"http:\/\/blog.nosland.com\/?p=591"},"modified":"2019-04-11T12:48:58","modified_gmt":"2019-04-11T10:48:58","slug":"mise-en-place-authentification-sur-reverse-proxy-apache","status":"publish","type":"post","link":"http:\/\/blog.nosland.com\/?p=591","title":{"rendered":"Mise en place authentification sur reverse proxy apache"},"content":{"rendered":"\n<p>        Dans un virtual host public : <\/p>\n\n\n\n<p class=\"has-text-color has-background has-luminous-vivid-amber-color has-very-dark-gray-background-color\">   ProxyPreserveHost On<br>   ProxyHTMLExtended On  <location> <\/location><br><location>   &lt;Location \/><\/location><br><location>   AuthName \u00ab\u00a0restricted Access\u00a0\u00bb<\/location><br><location>   AuthType Basic<\/location><br><location>   AuthUserFile \/path_to_secret_file\/mysecretfile.users <\/location><br><location>   Require valid-user<\/location><br><location>   ProxyPass http:\/\/my_url_private\/<\/location><br><location>   ProxyPassReverse http:\/\/my_url_private\/<\/location><br><location>  &lt;\/Location>       <\/location><\/p>\n\n\n\n<p>Puis en bash : <\/p>\n\n\n\n<p class=\"has-text-color has-background has-vivid-green-cyan-color has-very-dark-gray-background-color\">htpasswd -c  \/path_to_secret_file\/mysecretfile.users  user1<\/p>\n\n\n\n<p>Si on veut ajouter d&rsquo;autres users : <\/p>\n\n\n\n<p class=\"has-text-color has-background has-vivid-green-cyan-color has-very-dark-gray-background-color\"> htpasswd  \/path_to_secret_file\/mysecretfile.users  user2 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dans un virtual host public : ProxyPreserveHost On ProxyHTMLExtended On &lt;Location \/> AuthName \u00ab\u00a0restricted Access\u00a0\u00bb AuthType Basic AuthUserFile \/path_to_secret_file\/mysecretfile.users Require&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.nosland.com\/index.php?rest_route=\/wp\/v2\/posts\/591"}],"collection":[{"href":"http:\/\/blog.nosland.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.nosland.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.nosland.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.nosland.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=591"}],"version-history":[{"count":1,"href":"http:\/\/blog.nosland.com\/index.php?rest_route=\/wp\/v2\/posts\/591\/revisions"}],"predecessor-version":[{"id":592,"href":"http:\/\/blog.nosland.com\/index.php?rest_route=\/wp\/v2\/posts\/591\/revisions\/592"}],"wp:attachment":[{"href":"http:\/\/blog.nosland.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.nosland.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=591"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.nosland.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}