質問編集履歴

4

追記記入

2020/10/19 23:29

投稿

tomaa
tomaa

スコア84

test CHANGED
File without changes
test CHANGED
@@ -86,7 +86,7 @@
86
86
 
87
87
  listen 443 ssl default_server;
88
88
 
89
- server_name mydomainname.com 160.16.133.244;
89
+ server_name mydomainname.com xxx.xxx.xxx.xxx;
90
90
 
91
91
 
92
92
 

3

内容編集

2020/10/19 23:28

投稿

tomaa
tomaa

スコア84

test CHANGED
File without changes
test CHANGED
@@ -31,6 +31,12 @@
31
31
 
32
32
 
33
33
  関係するファイル等は以下のとおりです。
34
+
35
+
36
+
37
+ **追記:
38
+
39
+ nginxの仕様だとセキュリティーの対策として、IPアドレス直打ちはアクセスさせないのが通常の仕様なのでしょうか?**
34
40
 
35
41
 
36
42
 

2

内容編集

2020/10/19 21:07

投稿

tomaa
tomaa

スコア84

test CHANGED
File without changes
test CHANGED
@@ -38,9 +38,23 @@
38
38
 
39
39
 
40
40
 
41
- wordpress.conf
41
+ wordpress.conf(編集済み)
42
42
 
43
43
  ```
44
+
45
+ server {
46
+
47
+ listen 80;
48
+
49
+ listen [::]:80;
50
+
51
+ server_name mydomainname.com:
52
+
53
+ return 301 https://$host$request_uri;
54
+
55
+ }
56
+
57
+
44
58
 
45
59
  server {
46
60
 
@@ -60,11 +74,13 @@
60
74
 
61
75
 
62
76
 
63
- server {
77
+ server {
78
+
79
+
64
80
 
65
81
  listen 443 ssl default_server;
66
82
 
67
- server_name mydomainname.com;
83
+ server_name mydomainname.com 160.16.133.244;
68
84
 
69
85
 
70
86
 
@@ -84,15 +100,21 @@
84
100
 
85
101
  location / {
86
102
 
103
+
104
+
87
105
  try_files $uri $uri/ /index.php?args;
88
106
 
89
107
  }
90
108
 
91
109
 
92
110
 
111
+
112
+
93
113
  location ~ .php$ {
94
114
 
95
- include snippets/fastcgi-php.conf;
115
+ include snippets/fastcgi-php.conf;
116
+
117
+
96
118
 
97
119
  fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
98
120
 

1

内容編集

2020/10/19 20:45

投稿

tomaa
tomaa

スコア84

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- 上記のサーバーには、独自ドメインを入手し、https化してサイト紐付けを行っております。
9
+ 上記のサーバーには、独自ドメインを入手し、https化してサイト紐付けを行っております。
10
10
 
11
11
 
12
12