質問編集履歴

1

修正

2020/08/22 14:11

投稿

aoinosuke
aoinosuke

スコア8

test CHANGED
File without changes
test CHANGED
@@ -27,3 +27,131 @@
27
27
  この記事が自分とそっくりなのでっすが、解決方法がなく困っております。
28
28
 
29
29
  どなたかよろしくお願いします。
30
+
31
+
32
+
33
+ ```
34
+
35
+ user nginx;
36
+
37
+ worker_processes auto;
38
+
39
+ error_log /var/log/nginx/error.log;
40
+
41
+ pid /run/nginx.pid;
42
+
43
+
44
+
45
+ # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
46
+
47
+ include /usr/share/nginx/modules/*.conf;
48
+
49
+
50
+
51
+ events {
52
+
53
+ worker_connections 1024;
54
+
55
+ }
56
+
57
+
58
+
59
+ http {
60
+
61
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
62
+
63
+ '$status $body_bytes_sent "$http_referer" '
64
+
65
+ '"$http_user_agent" "$http_x_forwarded_for"';
66
+
67
+
68
+
69
+ access_log /var/log/nginx/access.log main;
70
+
71
+
72
+
73
+ sendfile on;
74
+
75
+ tcp_nopush on;
76
+
77
+ tcp_nodelay on;
78
+
79
+ keepalive_timeout 65;
80
+
81
+ types_hash_max_size 4096;
82
+
83
+
84
+
85
+ include /etc/nginx/mime.types;
86
+
87
+ default_type application/octet-stream;
88
+
89
+
90
+
91
+ # Load modular configuration files from the /etc/nginx/conf.d directory.
92
+
93
+ # See http://nginx.org/en/docs/ngx_core_module.html#include
94
+
95
+ # for more information.
96
+
97
+ include /etc/nginx/conf.d/*.conf;
98
+
99
+
100
+
101
+
102
+
103
+ server {
104
+
105
+ listen 80;
106
+
107
+ listen [::]:80;
108
+
109
+ server_name _;
110
+
111
+ root /var/www/outputer/public/;
112
+
113
+ index index.php index.html index.htm;
114
+
115
+ # Load configuration files for the default server block.
116
+
117
+ include /etc/nginx/default.d/*.conf;
118
+
119
+
120
+
121
+ error_page 404 /404.html;
122
+
123
+ location = /40x.html {
124
+
125
+ }
126
+
127
+
128
+
129
+ error_page 500 502 503 504 /50x.html;
130
+
131
+ location = /50x.html {
132
+
133
+ try_files $uri $uri/ /index.php$is_args$args;
134
+
135
+
136
+
137
+ }
138
+
139
+ location ~ .php$ {
140
+
141
+ try_files $uri /index.php =404;
142
+
143
+ fastcgi_pass unix:/var/run/php5-fpm.sock;
144
+
145
+ fastcgi_index index.php;
146
+
147
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
148
+
149
+ include fastcgi_params;
150
+
151
+ }
152
+
153
+ }
154
+
155
+
156
+
157
+ ```