質問編集履歴
1
default,conf を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -110,18 +110,26 @@
|
|
110
110
|
```
|
111
111
|
./docker/nginx/default.conf
|
112
112
|
```
|
113
|
-
|
113
|
+
server {
|
114
|
+
listen 80;
|
115
|
+
root /var/www/laravel-project/public;
|
116
|
+
index index.php;
|
117
|
+
location / {
|
118
|
+
root /var/www/laravel-project/public;
|
119
|
+
index index.php;
|
114
|
-
|
120
|
+
try_files $uri $uri/ /index.php$query_string;
|
121
|
+
}
|
122
|
+
location ~ \.php$ {
|
115
|
-
|
123
|
+
try_files $uri =404;
|
116
|
-
|
124
|
+
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
117
|
-
mbstring.language = "Japanese"
|
118
|
-
[opcache]
|
119
|
-
|
125
|
+
fastcgi_pass app:9000;
|
120
|
-
|
126
|
+
fastcgi_index index.php;
|
121
|
-
opcache.max_accelerated_files=4000
|
122
|
-
opcache.revalidate_freq=60
|
123
|
-
|
127
|
+
include fastcgi_params;
|
128
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
124
|
-
|
129
|
+
fastcgi_param PATH_INFO $fastcgi_path_info;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
125
133
|
```
|
126
134
|
### 試したこと
|
127
135
|
ロートディレクトリで`docker build ./docker/php/ `をしてみましたが変わりありませんでした
|