質問編集履歴

2

http://localhost:8080/welcome の間違い

2019/03/30 10:28

投稿

katsun0921
katsun0921

スコア32

test CHANGED
File without changes
test CHANGED
@@ -226,7 +226,7 @@
226
226
 
227
227
 
228
228
 
229
- これだと```http://localhost:8080/```だとページが表示されますが、```http://localhost:8080//welcome```だと404 Not Foundとなってしまいました。
229
+ これだと```http://localhost:8080/```だとページが表示されますが、```http://localhost:8080/welcome```だと404 Not Foundとなってしまいました。
230
230
 
231
231
 
232
232
 

1

nginxの設定を追記しました。

2019/03/30 10:28

投稿

katsun0921
katsun0921

スコア32

test CHANGED
File without changes
test CHANGED
@@ -120,6 +120,56 @@
120
120
 
121
121
 
122
122
 
123
+ nginxの設定
124
+
125
+ ```default.conf
126
+
127
+ server {
128
+
129
+ listen 80;
130
+
131
+ index index.php index.html;
132
+
133
+ root /var/www/public;
134
+
135
+
136
+
137
+ location / {
138
+
139
+ root /var/www/public;
140
+
141
+ index index.html index.php;
142
+
143
+ }
144
+
145
+
146
+
147
+ location ~ .php$ {
148
+
149
+
150
+
151
+ try_files $uri =404;
152
+
153
+ fastcgi_split_path_info ^(.+.php)(/.+)$;
154
+
155
+ fastcgi_pass php:9000;
156
+
157
+ fastcgi_index index.php;
158
+
159
+ include fastcgi_params;
160
+
161
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
162
+
163
+ fastcgi_param PATH_INFO $fastcgi_path_info;
164
+
165
+ }
166
+
167
+ }
168
+
169
+ ```
170
+
171
+
172
+
123
173
  ![larabel](665f61d205c1bc6e0c2d11e6ed0ae2a2.png)
124
174
 
125
175