teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

誤字

2019/12/14 21:45

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -12,7 +12,7 @@
12
12
  https://XX.XX.XX.XX → 444(nginx)
13
13
 
14
14
  ### 試したこと
15
- [こちら](https://blog.luispc.com/entry/2019/08/24/025404#1-Cloudflare-%E3%81%8B%E3%82%89%E3%83%97%E3%83%AD%E3%82%AD%E3%82%B7%E3%81%95%E3%82%8C%E3%81%9F%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%82%92-Nginx-%E3%81%AE%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%83%AD%E3%82%B0%E3%81%AE%E3%82%AF%E3%83%A9%E3%82%A4%E3%83%B3%E3%83%88-IP-%E3%82%92%E6%AD%A3%E3%81%97%E3%81%84%E3%81%AE%E3%81%AB%E3%81%99%E3%82%8B)を参考に下記のように設定
15
+ [こちら](https://blog.luispc.com/entry/2019/08/24/025404)を参考に下記のように設定
16
16
  ```nginx
17
17
  eo $realip_remote_addr $cf {
18
18
  default 0;

1

誤字

2019/12/14 21:45

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -42,7 +42,7 @@
42
42
  }
43
43
  server {
44
44
  if ($cf = 0){
45
- return 403;
45
+ return 444;
46
46
  }
47
47
  }
48
48
  ```