{"id":272981,"date":"2023-12-29T10:52:53","date_gmt":"2023-12-29T01:52:53","guid":{"rendered":"https:\/\/www.singapore-startup.com\/?p=272981"},"modified":"2023-12-29T10:52:53","modified_gmt":"2023-12-29T01:52:53","slug":"netbox%e3%81%ae%e3%80%8cbad-request-400%e3%80%8d%e3%82%a8%e3%83%a9%e3%83%bc%e5%ae%8c%e5%85%a8%e8%a7%a3%e6%b1%ba%e3%82%ac%e3%82%a4%e3%83%89%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.singapore-startup.com\/?p=272981","title":{"rendered":"NetBox\u306e\u300cBad Request (400)\u300d\u30a8\u30e9\u30fc\u5b8c\u5168\u89e3\u6c7a\u30ac\u30a4\u30c9\uff01"},"content":{"rendered":"<div class=\"aafe36d7afa19a8010513acdd90193c0\" data-index=\"1\" style=\"float: none; margin:0px 0 0px 0; text-align:center;\">\n<center>Sponsored Link<\/center>\r\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- Article upper_singapore-startup.com -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-8303070969424899\"\r\n     data-ad-slot=\"5656608650\"\r\n     data-ad-format=\"rectangle\"><\/ins>\r\n<script>\r\n(adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<h1>NetBox\u306e\u300cBad Request (400)\u300d\u30a8\u30e9\u30fc\u89e3\u6c7a\u30ac\u30a4\u30c9<\/h1>\n<p>\u3000NetBox\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7ba1\u7406\u306e\u305f\u3081\u306e\u5f37\u529b\u306aIP\u30a2\u30c9\u30ec\u30b9\u7ba1\u7406\uff08IPAM\uff09\u304a\u3088\u3073\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u7ba1\u7406\uff08DCIM\uff09\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u305d\u306e\u8a2d\u5b9a\u3084\u904b\u7528\u4e2d\u306b\u300cBad Request (400)\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u306b\u76f4\u9762\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30a8\u30e9\u30fc\u306f\u3001Web\u30b5\u30fc\u30d0\u30fc\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u7406\u89e3\u3067\u304d\u306a\u3044\u3001\u307e\u305f\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u4e0d\u6b63\u3067\u3042\u308b\u3068\u5224\u65ad\u3057\u305f\u5834\u5408\u306b\u767a\u751f\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u3053\u306e\u554f\u984c\u306e\u4e00\u822c\u7684\u306a\u539f\u56e0\u3068\u89e3\u6c7a\u7b56\u3092\u8a73\u7d30\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4><\/h4>\n<h2>\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3068\u5bfe\u51e6\u6cd5<\/h2>\n<h3>1. ALLOWED_HOSTS\u306e\u8a2d\u5b9a\u30df\u30b9:<\/h3>\n<p>&#8211; <strong>\u539f\u56e0<\/strong>: `ALLOWED_HOSTS`\u306f\u3001Django\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308bNetBox\u304c\u5fdc\u7b54\u3092\u8fd4\u3059\u3079\u304d\u30db\u30b9\u30c8\u540d\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u3053\u306e\u8a2d\u5b9a\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u3068\u3001NetBox\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u5165\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>&#8211; <strong>\u89e3\u6c7a\u7b56<\/strong>: `ALLOWED_HOSTS`\u306bNetBox\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u969b\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3084IP\u30a2\u30c9\u30ec\u30b9\u3092\u6b63\u78ba\u306b\u8a2d\u5b9a\u3057\u3001NetBox\u53ca\u3073\u95a2\u9023\u3059\u308bWeb\u30b5\u30fc\u30d0\u30fc\uff08\u4f8b\u3048\u3070Nginx\u3084Apache\uff09\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>2. \u30d7\u30ed\u30ad\u30b7\u8a2d\u5b9a\u306e\u8aa4\u308a:<\/h3>\n<p>&#8211; <strong>\u539f\u56e0<\/strong>: \u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u3092\u4ecb\u3057\u3066NetBox\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b\u5834\u5408\u3001`proxy_set_header`\u306e\u8a2d\u5b9a\u304c\u4e0d\u9069\u5207\u3067\u3042\u308b\u3068\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u60c5\u5831\u304c\u6b63\u3057\u304fNetBox\u306b\u4f1d\u308f\u3089\u305a\u3001400\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p>&#8211; <strong>\u89e3\u6c7a\u7b56<\/strong>: \u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u3092\u898b\u76f4\u3057\u3001\u7279\u306b`X-Forwarded-Host`\u3001`X-Real-IP`\u3001`Host`\u306a\u3069\u306e\u30d8\u30c3\u30c0\u30fc\u304c\u6b63\u3057\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>3. \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u306e\u554f\u984c:<\/h3>\n<p>&#8211; <strong>\u539f\u56e0<\/strong>: Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\uff08WAF\uff09\u3084\u305d\u306e\u4ed6\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\u304c\u3001\u6b63\u5e38\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u8aa4\u3063\u3066\u30d6\u30ed\u30c3\u30af\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>&#8211; <strong>\u89e3\u6c7a\u7b56<\/strong>: \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u3092\u898b\u76f4\u3057\u3001NetBox\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u9069\u5207\u306b\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30dd\u30ea\u30b7\u30fc\u3092\u8abf\u6574\u3059\u308b\u3053\u3068\u3082\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>4. \u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u975e\u4e92\u63db\u6027:<\/h3>\n<p>&#8211; <strong>\u539f\u56e0<\/strong>: NetBox\u3084\u95a2\u9023\u3059\u308b\u4f9d\u5b58\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u3044\u3001\u307e\u305f\u306f\u30b7\u30b9\u30c6\u30e0\u8981\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u4e0d\u5177\u5408\u3084\u4e92\u63db\u6027\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>&#8211; <strong>\u89e3\u6c7a\u7b56<\/strong>: NetBox\u304a\u3088\u3073\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6700\u65b0\u306e\u3082\u306e\u306b\u66f4\u65b0\u3057\u3001\u516c\u5f0f\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u5f93\u3063\u3066\u30b7\u30b9\u30c6\u30e0\u8981\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>5. \u30ed\u30b0\u306e\u78ba\u8a8d:<\/h3>\n<p>&#8211; <strong>\u539f\u56e0<\/strong>: 400\u30a8\u30e9\u30fc\u306e\u5177\u4f53\u7684\u306a\u539f\u56e0\u3092\u7279\u5b9a\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u969b\u306e\u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>&#8211; <strong>\u89e3\u6c7a\u7b56<\/strong>: NetBox\u53ca\u3073Web\u30b5\u30fc\u30d0\u30fc\u306e\u30ed\u30b0\u3092\u78ba\u8a8d\u3057\u3001\u30a8\u30e9\u30fc\u306e\u8a73\u7d30\u60c5\u5831\u3092\u628a\u63e1\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30ed\u30b0\u306b\u306f\u3001\u554f\u984c\u306e\u8a3a\u65ad\u306b\u5f79\u7acb\u3064\u91cd\u8981\u306a\u624b\u304c\u304b\u308a\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>\u95a2\u9023\u30ea\u30f3\u30af<\/h3>\n<p>&#8211; [<span style=\"text-decoration: underline; color: #0000ff;\"><a href=\"https:\/\/netbox.readthedocs.io\/\" style=\"color: #0000ff; text-decoration: underline;\">NetBox\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a><\/span>]\n<p>&#8211; [<span style=\"text-decoration: underline; color: #0000ff;\"><a href=\"https:\/\/github.com\/netbox-community\/netbox\/discussions\/9337\" style=\"color: #0000ff; text-decoration: underline;\">NetBox GitHub Discussion on Bad Request (400)<\/a><\/span>]\n<p>&#8211; [<span style=\"text-decoration: underline; color: #0000ff;\"><a href=\"https:\/\/groups.google.com\/g\/netbox-discuss\/c\/tcrJjqEUAXQ\" style=\"color: #0000ff; text-decoration: underline;\">NetBox Google Group Discussion<\/a><\/span>]\n<p>&#8211; [<span style=\"text-decoration: underline; color: #0000ff;\"><a href=\"https:\/\/xcp-ng.org\/forum\/topic\/7866\/netbox-plugin-error-code-400-error-bad-request\/1\" style=\"color: #0000ff; text-decoration: underline;\">NetBox Plugin Error Discussion on XCP-ng Forum<\/a><\/span>]\n<p>&nbsp;<\/p>\n<p>\u3000\u3053\u306e\u30ac\u30a4\u30c9\u304c\u300cBad Request (400)\u300d\u30a8\u30e9\u30fc\u306e\u89e3\u6c7a\u306b\u5f79\u7acb\u3064\u3053\u3068\u3092\u9858\u3063\u3066\u3044\u307e\u3059\u3002NetBox\u306e\u8a2d\u5b9a\u3084\u904b\u7528\u306f\u8907\u96d1\u3067\u3042\u308a\u3001\u5c0f\u3055\u306a\u8a2d\u5b9a\u30df\u30b9\u304c\u5927\u304d\u306a\u554f\u984c\u3092\u5f15\u304d\u8d77\u3053\u3059\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u9069\u5207\u306a\u8a2d\u5b9a\u3068\u5b9a\u671f\u7684\u306a\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u306b\u3088\u308a\u3001NetBox\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7ba1\u7406\u306e\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3068\u3057\u3066\u305d\u306e\u6a5f\u80fd\u3092\u767a\u63ee\u3057\u307e\u3059\u3002\u30a8\u30e9\u30fc\u306b\u76f4\u9762\u3057\u305f\u969b\u306f\u3001\u3053\u306e\u30ac\u30a4\u30c9\u3092\u53c2\u8003\u306b\u3057\u306a\u304c\u3089\u3001\u51b7\u9759\u306b\u5bfe\u51e6\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>NetBox\u306e\u300cBad Request (400)\u300d\u30a8\u30e9\u30fc\u89e3\u6c7a\u30ac\u30a4\u30c9 \u3000NetBox\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7ba1\u7406\u306e\u305f\u3081\u306e\u5f37\u529b\u306aIP\u30a2\u30c9\u30ec\u30b9\u7ba1\u7406\uff08IPAM\uff09\u304a\u3088\u3073\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u7ba1\u7406\uff08DCIM\uff09\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3057\u304b\u3057&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[418068],"tags":[418070],"class_list":{"0":"post-272981","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-netbox","7":"tag-netbox-bad-request-400","8":"article cf"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.singapore-startup.com\/index.php?rest_route=\/wp\/v2\/posts\/272981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.singapore-startup.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.singapore-startup.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.singapore-startup.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.singapore-startup.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=272981"}],"version-history":[{"count":1,"href":"https:\/\/www.singapore-startup.com\/index.php?rest_route=\/wp\/v2\/posts\/272981\/revisions"}],"predecessor-version":[{"id":272982,"href":"https:\/\/www.singapore-startup.com\/index.php?rest_route=\/wp\/v2\/posts\/272981\/revisions\/272982"}],"wp:attachment":[{"href":"https:\/\/www.singapore-startup.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.singapore-startup.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.singapore-startup.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}