質問編集履歴
2
ソースコードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -13,3 +13,139 @@
|
|
13
13
|
nginx/1.11.3
|
14
14
|
|
15
15
|
PHP 5.6.24
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
###該当のソースコード
|
22
|
+
|
23
|
+
```ここに言語を入力
|
24
|
+
|
25
|
+
## nginx.conf
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
user httpd www;
|
30
|
+
|
31
|
+
worker_processes auto;
|
32
|
+
|
33
|
+
worker_rlimit_nofile 20000;
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
error_log /var/log/nginx/error.log warn;
|
40
|
+
|
41
|
+
pid /var/run/nginx.pid;
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
events {
|
46
|
+
|
47
|
+
worker_connections 4096;
|
48
|
+
|
49
|
+
multi_accept on;
|
50
|
+
|
51
|
+
use epoll;
|
52
|
+
|
53
|
+
}
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
http {
|
58
|
+
|
59
|
+
server_tokens off;
|
60
|
+
|
61
|
+
include /etc/nginx/mime.types;
|
62
|
+
|
63
|
+
default_type application/octet-stream;
|
64
|
+
|
65
|
+
charset UTF-8;
|
66
|
+
|
67
|
+
server_names_hash_bucket_size 128;
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
log_format main '$request_time $sent_http_x_f_cache $sent_http_x_b_cache '
|
72
|
+
|
73
|
+
'$remote_addr - $remote_user [$time_local] "$request" '
|
74
|
+
|
75
|
+
'$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
access_log /var/log/nginx/access.log main;
|
80
|
+
|
81
|
+
client_max_body_size 20M;
|
82
|
+
|
83
|
+
client_body_buffer_size 768k;
|
84
|
+
|
85
|
+
sendfile on;
|
86
|
+
|
87
|
+
tcp_nopush on;
|
88
|
+
|
89
|
+
tcp_nodelay on;
|
90
|
+
|
91
|
+
keepalive_timeout 5;
|
92
|
+
|
93
|
+
connection_pool_size 1024;
|
94
|
+
|
95
|
+
request_pool_size 8k;
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
gzip on;
|
100
|
+
|
101
|
+
gzip_http_version 1.0;
|
102
|
+
|
103
|
+
gzip_disable "msie6";
|
104
|
+
|
105
|
+
gzip_proxied any;
|
106
|
+
|
107
|
+
gzip_min_length 1024;
|
108
|
+
|
109
|
+
gzip_comp_level 2;
|
110
|
+
|
111
|
+
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript application/json;
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
brotli on;
|
116
|
+
|
117
|
+
brotli_static on;
|
118
|
+
|
119
|
+
brotli_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript application/json;
|
120
|
+
|
121
|
+
brotli_comp_level 3;
|
122
|
+
|
123
|
+
brotli_min_length 1024;
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
open_file_cache max=100000 inactive=20s;
|
128
|
+
|
129
|
+
open_file_cache_valid 30s;
|
130
|
+
|
131
|
+
open_file_cache_min_uses 2;
|
132
|
+
|
133
|
+
open_file_cache_errors on;
|
134
|
+
|
135
|
+
fastcgi_cache_path /var/cache/nginx/wordpress levels=1:2 keys_zone=wpcache:30m max_size=512M inactive=600m;
|
136
|
+
|
137
|
+
fastcgi_ignore_headers "Vary" "Cache-Control" "Expires";
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
include /etc/nginx/conf.d/*.conf;
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
}
|
146
|
+
|
147
|
+
[tomo@133-130-119-125 ~]$
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
```
|
1
補足の説明を加えました
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
|
1
|
+
WordPressで作っているページのパーマリンクが上手く機能しておらず困っています。
|
2
2
|
|
3
|
+
|
4
|
+
|
5
|
+
WordPressでパーマリンク設定を行うと、サーバがApacheであれば.htaccessが書き換えられると思います。
|
6
|
+
|
3
|
-
Nginx
|
7
|
+
今回は、Nginxを利用しているので、.htaccessに代わるファイルが書き換えられていると考えているのですが、このファイルがどれに当たるのか分かりません。どなたか教えていただけませんか?
|
4
8
|
|
5
9
|
|
6
10
|
|