質問編集履歴

1

defoult.conf の内容を追記しました。

2020/07/14 00:35

投稿

Sento__aa
Sento__aa

スコア21

test CHANGED
File without changes
test CHANGED
@@ -110,6 +110,58 @@
110
110
 
111
111
  ```
112
112
 
113
+ **defoult.conf**
114
+
115
+ ```
116
+
117
+ server {
118
+
119
+
120
+
121
+ listen 80;
122
+
123
+ root /var/www/html/;
124
+
125
+ index index.php index.html index.htm;
126
+
127
+
128
+
129
+ access_log /var/log/nginx/access.log;
130
+
131
+ error_log /var/log/nginx/error.log;
132
+
133
+
134
+
135
+ location / {
136
+
137
+ try_files $uri $uri/ /index.php$is_args$args;
138
+
139
+ }
140
+
141
+
142
+
143
+ location ~ .php$ {
144
+
145
+ fastcgi_split_path_info ^(.+.php)(/.+)$;
146
+
147
+ fastcgi_pass app:9000;
148
+
149
+ fastcgi_index index.php;
150
+
151
+
152
+
153
+ include fastcgi_params;
154
+
155
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
156
+
157
+ fastcgi_param PATH_INFO $fastcgi_path_info;
158
+
159
+ }
160
+
161
+ }
162
+
163
+ ```
164
+
113
165
 
114
166
 
115
167
  **コンテナ起動確認**