質問編集履歴
1
default.confのついか
test
CHANGED
File without changes
|
test
CHANGED
@@ -74,6 +74,92 @@
|
|
74
74
|
|
75
75
|
```
|
76
76
|
|
77
|
+
default.confの中身も確認しましたが、問題ないかと思います。
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
server {
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
listen 80 default_server;
|
86
|
+
|
87
|
+
listen [::]:80 default_server ipv6only=on;
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
# For https
|
92
|
+
|
93
|
+
# listen 443 ssl default_server;
|
94
|
+
|
95
|
+
# listen [::]:443 ssl default_server ipv6only=on;
|
96
|
+
|
97
|
+
# ssl_certificate /etc/nginx/ssl/default.crt;
|
98
|
+
|
99
|
+
# ssl_certificate_key /etc/nginx/ssl/default.key;
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
server_name localhost;
|
104
|
+
|
105
|
+
root /var/www/MyProject/public;
|
106
|
+
|
107
|
+
index index.php index.html index.htm;
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
location / {
|
112
|
+
|
113
|
+
try_files $uri $uri/ /index.php$is_args$args;
|
114
|
+
|
115
|
+
}
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
location ~ .php$ {
|
120
|
+
|
121
|
+
try_files $uri /index.php =404;
|
122
|
+
|
123
|
+
fastcgi_pass php-upstream;
|
124
|
+
|
125
|
+
fastcgi_index index.php;
|
126
|
+
|
127
|
+
fastcgi_buffers 16 16k;
|
128
|
+
|
129
|
+
fastcgi_buffer_size 32k;
|
130
|
+
|
131
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
132
|
+
|
133
|
+
#fixes timeouts
|
134
|
+
|
135
|
+
fastcgi_read_timeout 600;
|
136
|
+
|
137
|
+
include fastcgi_params;
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
location ~ /.ht {
|
144
|
+
|
145
|
+
deny all;
|
146
|
+
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
location /.well-known/acme-challenge/ {
|
152
|
+
|
153
|
+
root /var/www/letsencrypt/;
|
154
|
+
|
155
|
+
log_not_found off;
|
156
|
+
|
157
|
+
}
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
```
|
162
|
+
|
77
163
|
|
78
164
|
|
79
165
|
### 補足情報(FW/ツールのバージョンなど)
|