{"title":"nginx\u3067Basic\u8a8d\u8a3c","blog_title":"the industrial","description":"\u3044\u3063\u3064\u3082\u5fd8\u308c\u3066\u305d\u306e\u305f\u3073\u306b\u691c\u7d22\u3057\u305f\u308a\u3059\u308b\u3002 \u4f55\u5ea6\u304b\u305d\u3093\u306a\u4e8b\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3082\u3046\u81ea\u5206\u306e\u30d6\u30ed\u30b0\u306b\u30e1\u30e2\u3002 \u30ed\u30b0\u30a4\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u4f5c\u6210 $ sudo htpasswd -c /etc/nginx/.htpasswd {user_name} \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6 $ vim nginx.conf location / { \u30fb\u30fb\u30fb auth_basic \"Restricted\"; auth_basic_user_file /etc/nginx/.htpasswd; \u30fb\u30fb\u30fb } nginx\u30ea\u30ed\u30fc\u30c9 $ sudo nginx -s reload nginx\u8a73\u3057\u304f\u306a\u308a\u305f\u3044\u306e\u3060\u3051\u3069\u3001\u306a\u304b\u306a\u304b\u89e6\u308b\u6642\u9593\u304c\u6301\u3066\u306a\u3044\u30fb\u30fb\u30fb\u3002","type":"rich","version":"1.0","blog_url":"https://omiend.hatenablog.jp/","height":"190","published":"2018-11-28 12:44:02","width":"100%","author_url":"https://blog.hatena.ne.jp/omiend/","provider_name":"Hatena Blog","url":"https://omiend.hatenablog.jp/entry/2018/11/28/124402","provider_url":"https://hatena.blog","author_name":"omiend","image_url":null,"categories":["nginx","WORK","PROGRAMMING"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fomiend.hatenablog.jp%2Fentry%2F2018%2F11%2F28%2F124402\" title=\"nginx\u3067Basic\u8a8d\u8a3c - the industrial\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}