質問編集履歴

9

情報修正

2017/10/04 04:32

投稿

youko
youko

スコア17

test CHANGED
File without changes
test CHANGED
@@ -214,6 +214,20 @@
214
214
 
215
215
 
216
216
 
217
+ まずはWindowsのhostsに設定
218
+
219
+ ```
220
+
221
+ 192.168.11.27 hoge-global.com www.hoge-global.com
222
+
223
+ ```
224
+
225
+
226
+
227
+
228
+
229
+ 次にサーバのhostsに設定
230
+
217
231
  ```
218
232
 
219
233
  # vi /etc/hosts

8

修正

2017/10/04 04:32

投稿

youko
youko

スコア17

test CHANGED
File without changes
test CHANGED
@@ -70,6 +70,28 @@
70
70
 
71
71
 
72
72
 
73
+ ```
74
+
75
+ # wget http://www.hoge-global.com/sub/contact/products/
76
+
77
+
78
+
79
+ --2017-10-04 20:08:29-- http://www.hoge-global.com/sub/contact/products/
80
+
81
+ www.hoge-global.com をDNSに問いあわせています... 192.168.11.27
82
+
83
+ www.hoge-global.com|192.168.11.27|:80 に接続しています... 接続しました。
84
+
85
+ HTTP による接続要求を送信しました、応答を待っています... 400 Bad Request
86
+
87
+ 2017-10-04 20:08:29 エラー 400: Bad Request。
88
+
89
+ ```
90
+
91
+
92
+
93
+ 400エラーが発生します。
94
+
73
95
 
74
96
 
75
97
 
@@ -546,8 +568,14 @@
546
568
 
547
569
 
548
570
 
571
+
572
+
573
+
574
+
549
575
  サーバ内部から検証します。
550
576
 
577
+
578
+
551
579
  ```
552
580
 
553
581
  # wget http://www.hoge-global.com
@@ -572,7 +600,7 @@
572
600
 
573
601
  2017-10-04 19:41:07 (16.0 MB/s) - `index.html' へ保存完了 [38/38]
574
602
 
575
-
603
+ ```
576
604
 
577
605
  正常到達
578
606
 
@@ -586,7 +614,7 @@
586
614
 
587
615
 
588
616
 
589
-
617
+ ```
590
618
 
591
619
  # wget http://www.hoge-global.com/contact/products/
592
620
 
@@ -612,7 +640,7 @@
612
640
 
613
641
  2017-10-04 19:46:00 (31.4 MB/s) - `index.html.1' へ保存完了 [59/59]
614
642
 
615
-
643
+ ```
616
644
 
617
645
 
618
646
 
@@ -622,7 +650,7 @@
622
650
 
623
651
 
624
652
 
625
-
653
+ ```
626
654
 
627
655
  # wget http://hoge-global.fuel.local
628
656
 
@@ -646,7 +674,7 @@
646
674
 
647
675
  2017-10-04 19:46:12 (21.9 MB/s) - `index.html.2' へ保存完了 [42/42]
648
676
 
649
-
677
+ ```
650
678
 
651
679
  正常到達
652
680
 
@@ -686,6 +714,8 @@
686
714
 
687
715
 
688
716
 
717
+ ```
718
+
689
719
  # wget http://hoge_sub.fuel.local
690
720
 
691
721
 
@@ -700,7 +730,7 @@
700
730
 
701
731
  2017-10-04 19:46:28 エラー 400: Bad Request。
702
732
 
703
-
733
+ ```
704
734
 
705
735
  400エラーが発生します。
706
736
 
@@ -708,6 +738,8 @@
708
738
 
709
739
 
710
740
 
741
+ ```
742
+
711
743
  # wget http://hoge_sub.fuel.local/contact/products/
712
744
 
713
745
 

7

情報追加

2017/10/04 04:15

投稿

youko
youko

スコア17

test CHANGED
File without changes
test CHANGED
@@ -658,6 +658,34 @@
658
658
 
659
659
 
660
660
 
661
+
662
+
663
+ ```
664
+
665
+ # wget http://www.hoge-global.com/sub/contact/products/
666
+
667
+
668
+
669
+ --2017-10-04 20:08:29-- http://www.hoge-global.com/sub/contact/products/
670
+
671
+ www.hoge-global.com をDNSに問いあわせています... 192.168.11.27
672
+
673
+ www.hoge-global.com|192.168.11.27|:80 に接続しています... 接続しました。
674
+
675
+ HTTP による接続要求を送信しました、応答を待っています... 400 Bad Request
676
+
677
+ 2017-10-04 20:08:29 エラー 400: Bad Request。
678
+
679
+ ```
680
+
681
+
682
+
683
+ 400エラーが発生します。
684
+
685
+
686
+
687
+
688
+
661
689
  # wget http://hoge_sub.fuel.local
662
690
 
663
691
 

6

一部修正

2017/10/04 04:11

投稿

youko
youko

スコア17

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
 
12
12
 
13
- http://hoge_sub.fuel.local/contact/products/
13
+ http://www.hoge-global.com/sub/contact/products/
14
14
 
15
15
  前任者が作成したFuelPHP製のフォームにアクセスすると404 Bad Requestになります。
16
16
 

5

一部文字修正

2017/10/04 04:00

投稿

youko
youko

スコア17

test CHANGED
File without changes
test CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
 
24
24
 
25
- ローカルでも検証しましたが駄目なようです。
25
+ ローカルでも検証しましたがFuelPHPに関係なく駄目なようです。
26
26
 
27
27
  宜しくお願い致します。
28
28
 

4

ローカル検証のコンフィグに切り替えしました。 今までわかりにくくてすみません。

2017/10/04 03:58

投稿

youko
youko

スコア17

test CHANGED
File without changes
test CHANGED
@@ -10,113 +10,167 @@
10
10
 
11
11
 
12
12
 
13
- https://www.hoge-front.com/sub/contact/customer/
13
+ http://hoge_sub.fuel.local/contact/products/
14
14
 
15
15
  前任者が作成したFuelPHP製のフォームにアクセスすると404 Bad Requestになります。
16
16
 
17
17
 
18
18
 
19
- ApacheのProxyPassReverseが効いていないのかと考えていますが、
19
+ ApacheのAliasとProxyPassReverseが効いていないのかと考えていますが、
20
20
 
21
21
  ApacheのProxy系には不勉強でどうすれば良いか途方にくれています。
22
22
 
23
23
 
24
24
 
25
-
25
+ ローカルでも検証しましたが駄目なようです。
26
26
 
27
27
  宜しくお願い致します。
28
28
 
29
29
 
30
30
 
31
+ ローカル環境の検証状況を張ります。
32
+
33
+
34
+
31
35
  ###発生している問題・エラーメッセージ
32
36
 
33
37
 
34
38
 
35
39
 
36
40
 
37
-
38
-
39
-
40
-
41
-
42
-
43
- ■新環境
41
+ 正常表示
42
+
43
+ ```
44
+
45
+ # wget http://www.hoge-global.com
46
+
47
+ --2017-10-04 19:41:07-- http://www.hoge-global.com/
48
+
49
+ www.hoge-global.com をDNSに問いあわせています... 192.168.11.27
50
+
51
+ www.hoge-global.com|192.168.11.27|:80 に接続しています... 接続しました。
52
+
53
+ HTTP による接続要求を送信しました、応答を待っています... 200 OK
54
+
55
+ 長さ: 38 [text/html]
56
+
57
+ `index.html' に保存中
58
+
59
+
60
+
61
+ 100%[===================================================================================================>] 38 --.-K/s 時間 0s
62
+
63
+
64
+
65
+ 2017-10-04 19:41:07 (16.0 MB/s) - `index.html' へ保存完了 [38/38]
66
+
67
+ ```
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+ ```
82
+
83
+ # wget http://www.hoge-global.com/contact/products/
84
+
85
+
86
+
87
+ --2017-10-04 19:46:00-- http://www.hoge-global.com/contact/products/
88
+
89
+ www.hoge-global.com をDNSに問いあわせています... 192.168.11.27
90
+
91
+ www.hoge-global.com|192.168.11.27|:80 に接続しています... 接続しました。
92
+
93
+ HTTP による接続要求を送信しました、応答を待っています... 200 OK
94
+
95
+ 長さ: 59 [text/html]
96
+
97
+ `index.html.1' に保存中
98
+
99
+
100
+
101
+ 100%[===================================================================================================>] 59 --.-K/s 時間 0s
102
+
103
+
104
+
105
+ 2017-10-04 19:46:00 (31.4 MB/s) - `index.html.1' へ保存完了 [59/59]
106
+
107
+ ```
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+ 400エラー
44
118
 
45
119
  ```ここに言語を入力
46
120
 
47
- # wget http://hoge.fuel.local/contact/customer
48
-
49
-
50
-
51
- --2017-10-03 18:48:27-- http://hoge.fuel.local/contact/customer
52
-
53
- Resolving hoge.fuel.local... 127.0.0.1
54
-
55
- Connecting to hoge.fuel.local|127.0.0.1|:80... connected.
56
-
57
-
58
-
59
- HTTP request sent, awaiting response... 400 Bad Request
60
-
61
- 2017-10-03 18:48:27 ERROR 400: Bad Request.
62
-
63
- ```
64
-
65
-
66
-
67
-
68
-
69
- hostsを設定しているのでプロキシ先につながるようですが、アプリまで到達出来ないようです。
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
- ■旧環境
82
-
83
- ```ここ言語を入力
84
-
85
- # wget http://hoge.fuel.local/contact/customer
86
-
87
-
88
-
89
- --2017-10-03 18:48:56-- http://hoge.fuel.local/contact/customer
90
-
91
- Resolving hoge.fuel.local... 127.0.0.1
92
-
93
- Connecting to hoge.fuel.local|127.0.0.1|:80... connected.
94
-
95
-
96
-
97
-
98
-
99
- HTTP request sent, awaiting response... 200 OK
100
-
101
- Length: unspecified [text/html]
102
-
103
- Saving to: “customer”
104
-
105
-
106
-
107
- [ <=> ] 56,517 --.-K/s in 0s
108
-
109
-
110
-
111
- 2017-10-03 18:48:56 (241 MB/s) - “customer” saved [56517]
112
-
113
- ```
114
-
115
-
116
-
117
- 正常。
118
-
119
- 旧環境ではサーバ内部からアプリにアクセス出来て、リクエストをゲット出来ています。
121
+ # wget http://hoge_sub.fuel.local
122
+
123
+
124
+
125
+ --2017-10-04 19:46:28-- http://hoge_sub.fuel.local/
126
+
127
+ hoge_sub.fuel.local をDNSに問いあわせています... 127.0.0.1
128
+
129
+ hoge_sub.fuel.local|127.0.0.1|:80 に接続しています... 接続しました。
130
+
131
+ HTTP による接続要求を送信しました、応答を待っています... 400 Bad Request
132
+
133
+ 2017-10-04 19:46:28 エラー 400: Bad Request
134
+
135
+ ```
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+ 400エラー
148
+
149
+ ```
150
+
151
+ # wget http://hoge_sub.fuel.local/contact/products/
152
+
153
+
154
+
155
+ --2017-10-04 19:46:38-- http://hoge_sub.fuel.local/contact/products/
156
+
157
+ hoge_sub.fuel.local をDNS問いあわせています... 127.0.0.1
158
+
159
+ hoge_sub.fuel.local|127.0.0.1|:80 に接続しています... 接続しました。
160
+
161
+ HTTP による接続要求を送信しました、応答を待っています... 400 Bad Request
162
+
163
+ 2017-10-04 19:46:38 エラー 400: Bad Request
164
+
165
+ ```
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
120
174
 
121
175
 
122
176
 
@@ -134,19 +188,37 @@
134
188
 
135
189
  何か設定が足りない気がします...。
136
190
 
191
+
192
+
193
+
194
+
195
+ ```
196
+
197
+ # vi /etc/hosts
198
+
199
+
200
+
201
+ 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 hoge-global.fuel.local hoge_sub.fuel.local
202
+
203
+ ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
204
+
205
+
206
+
137
- 掲載しているもは旧環境で動いているコンフィグをそのまま持ってきているので正常かと思います。(名称はフェイクです。)
207
+ 192.168.11.27 www.hoge-global.com hoge-global.com
138
-
139
-
140
-
141
-
142
-
208
+
143
- ```ここに言語を入力
209
+ ```
210
+
211
+
212
+
213
+
214
+
144
-
215
+ ```
216
+
145
- # /etc/httpd/conf/httpd.conf
217
+ # vi /etc/httpd/conf/httpd.conf
146
-
147
-
148
-
149
- (略)
218
+
219
+
220
+
221
+
150
222
 
151
223
  ServerName localhost:80
152
224
 
@@ -156,101 +228,271 @@
156
228
 
157
229
 
158
230
 
159
- ```ここに言語を入力
160
-
161
- # cat /etc/hosts
162
-
163
- 127.0.0.1 hoge.fuel.local
164
-
165
- ```
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
- ```ここに言語を入力
174
-
175
- # /etc/httpd/conf.d/vhosts.conf
176
-
177
-
178
-
179
- <VirtualHost *:443>
180
-
181
- DocumentRoot "/home/web/hoge-front/public"
182
-
183
- ServerName www.hoge-front.com:443
184
-
185
- ErrorLog logs/hogefront-ssl_error_log
186
-
187
- TransferLog logs/hogefront-ssl_access_log
188
-
189
- LogLevel warn
190
-
191
-
192
-
193
- SSLEngine on
194
-
195
- SSLProtocol all -SSLv2
196
-
197
- SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
198
-
199
-
200
-
201
- SSLCertificateFile /etc/httpd/conf/ssl/hogefront.crt
202
-
203
- SSLCertificateKeyFile /etc/httpd/conf/ssl/hogefront.key
204
-
205
- SSLCertificateChainFile /etc/httpd/conf/ssl/hogefront_rapidssl.crt
206
-
207
-
208
-
209
- <IfModule mod_rewrite.c>
210
-
211
- RewriteEngine On
212
-
213
- #www
214
-
215
- RewriteCond %{HTTP_HOST} ^(hoge-front.com)(:80)? [NC]
216
-
217
- RewriteRule ^(.*)$ https://www.hoge-front.com%{REQUEST_URI} [R=301,L]
218
-
219
- #SSL
220
-
221
- RewriteCond %{HTTPS} off
222
-
223
- RewriteRule ^(.*)$ https://www.hoge-front.com%{REQUEST_URI} [R=301,L]
224
-
225
- </IfModule>
226
-
227
-
228
-
229
- <Location "/sub/contact/customer">
230
-
231
- ProxyPass http://hoge.fuel.local/contact/customer
232
-
233
- ProxyPassReverse http://hoge.fuel.local/contact/customer
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+ ```
244
+
245
+ # mkdir -p /home/web/hoge-global/public
246
+
247
+
248
+
249
+ # mkdir -p /home/web/hoge-global/app/public
250
+
251
+
252
+
253
+ # mkdir -p /home/web/hoge_sub/app/public
254
+
255
+
256
+
257
+
258
+
259
+ # mkdir -p /home/web/hoge-global/app/public/contact/products/
260
+
261
+
262
+
263
+ # mkdir -p /home/web/hoge_sub/app/public/contact/products/
264
+
265
+ ```
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+ ```
276
+
277
+ # vi /home/web/hoge-global/public/index.php
278
+
279
+
280
+
281
+ <?php
282
+
283
+ echo __FILE__;
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+ # vi /home/web/hoge-global/app/public/index.php
294
+
295
+
296
+
297
+ <?php
298
+
299
+ echo __FILE__;
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+ # vi /home/web/hoge-global/app/public/contact/products/index.php
312
+
313
+
314
+
315
+ <?php
316
+
317
+ echo __FILE__;
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+ # vi /home/web/hoge_sub/app/public/index.php
330
+
331
+
332
+
333
+ <?php
334
+
335
+ echo __FILE__;
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+ # vi /home/web/hoge-sub/app/public/contact/products/index.php
344
+
345
+
346
+
347
+ <?php
348
+
349
+ echo __FILE__;
350
+
351
+ ```
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+ ```
366
+
367
+ # vi /etc/httpd/conf.d/hoge-global.com.conf
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+ NameVirtualHost *:80
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+ <VirtualHost *:80>
384
+
385
+ DocumentRoot /home/web/hoge-global/public
386
+
387
+ ServerName www.hoge-global.com
388
+
389
+ ServerAlias hoge-global.com
390
+
391
+ ErrorLog logs/hoge-global-error.log
392
+
393
+ CustomLog logs/hoge-global-access.log common
394
+
395
+
396
+
397
+ <Location "/contact/products">
398
+
399
+ ProxyPass http://hoge-global.fuel.local/contact/products
400
+
401
+ ProxyPassReverse http://hoge-global.fuel.local/contact/products
234
402
 
235
403
  </Location>
236
404
 
237
405
 
238
406
 
407
+
408
+
409
+ <Location "/sub/contact/products">
410
+
411
+ ProxyPass http://hoge_sub.fuel.local/contact/products
412
+
413
+ ProxyPassReverse http://hoge_sub.fuel.local/contact/products
414
+
415
+ </Location>
416
+
417
+
418
+
419
+
420
+
421
+ <Directory "/home/web/hoge-global">
422
+
423
+ AllowOverride All
424
+
425
+ Order allow,deny
426
+
427
+ Allow from all
428
+
429
+
430
+
431
+ # Apache2.4対応の為変更
432
+
433
+ #Require all granted
434
+
435
+ </Directory>
436
+
437
+
438
+
439
+ Alias /sub /home/web/hoge_sub/public
440
+
441
+
442
+
443
+ <Directory "/home/web/hoge_sub">
444
+
445
+ AllowOverride All
446
+
447
+ Order allow,deny
448
+
449
+ Allow from all
450
+
451
+ # Apache2.4対応の為変更
452
+
453
+ #Require all granted
454
+
455
+ </Directory>
456
+
239
457
  </VirtualHost>
240
458
 
241
459
 
242
460
 
243
-
244
-
245
-
246
-
247
-
248
-
249
461
  <VirtualHost *:80>
250
462
 
463
+ DocumentRoot /home/web/hoge-global/app/public
464
+
465
+ ServerName hoge-global.fuel.local
466
+
467
+ ErrorLog logs/hoge-global-error.log
468
+
469
+ CustomLog logs/hoge-global-access.log common
470
+
471
+ <Directory "/home/web/hoge-global/app/public">
472
+
473
+ AllowOverride All
474
+
475
+ Order allow,deny
476
+
477
+ Allow from all
478
+
479
+ </Directory>
480
+
481
+ </VirtualHost>
482
+
483
+
484
+
485
+
486
+
487
+ <VirtualHost *:80>
488
+
251
489
  DocumentRoot /home/web/hoge_sub/app/public
252
490
 
253
- ServerName hoge.fuel.local
491
+ ServerName hoge_sub.fuel.local
492
+
493
+ ErrorLog logs/hoge_sub-error.log
494
+
495
+ CustomLog logs/hoge_sub-access.log common
254
496
 
255
497
  <Directory "/home/web/hoge_sub/app/public">
256
498
 
@@ -260,6 +502,10 @@
260
502
 
261
503
  Allow from all
262
504
 
505
+ # Apache2.4対応の為変更
506
+
507
+ #Require all granted
508
+
263
509
  </Directory>
264
510
 
265
511
  </VirtualHost>
@@ -270,11 +516,189 @@
270
516
 
271
517
 
272
518
 
273
-
519
+ ```
520
+
274
-
521
+ # httpd -t
522
+
275
-
523
+ ```
524
+
525
+
526
+
276
-
527
+ ```
528
+
277
-
529
+ # service httpd restart
530
+
531
+
532
+
533
+ httpd を停止中: [ OK ]
534
+
535
+ httpd を起動中: [ OK ]
536
+
537
+
538
+
539
+ ```
540
+
541
+
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+ サーバ内部から検証します。
550
+
551
+ ```
552
+
553
+ # wget http://www.hoge-global.com
554
+
555
+ --2017-10-04 19:41:07-- http://www.hoge-global.com/
556
+
557
+ www.hoge-global.com をDNSに問いあわせています... 192.168.11.27
558
+
559
+ www.hoge-global.com|192.168.11.27|:80 に接続しています... 接続しました。
560
+
561
+ HTTP による接続要求を送信しました、応答を待っています... 200 OK
562
+
563
+ 長さ: 38 [text/html]
564
+
565
+ `index.html' に保存中
566
+
567
+
568
+
569
+ 100%[===================================================================================================>] 38 --.-K/s 時間 0s
570
+
571
+
572
+
573
+ 2017-10-04 19:41:07 (16.0 MB/s) - `index.html' へ保存完了 [38/38]
574
+
575
+
576
+
577
+ 正常到達
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+
591
+ # wget http://www.hoge-global.com/contact/products/
592
+
593
+
594
+
595
+ --2017-10-04 19:46:00-- http://www.hoge-global.com/contact/products/
596
+
597
+ www.hoge-global.com をDNSに問いあわせています... 192.168.11.27
598
+
599
+ www.hoge-global.com|192.168.11.27|:80 に接続しています... 接続しました。
600
+
601
+ HTTP による接続要求を送信しました、応答を待っています... 200 OK
602
+
603
+ 長さ: 59 [text/html]
604
+
605
+ `index.html.1' に保存中
606
+
607
+
608
+
609
+ 100%[===================================================================================================>] 59 --.-K/s 時間 0s
610
+
611
+
612
+
613
+ 2017-10-04 19:46:00 (31.4 MB/s) - `index.html.1' へ保存完了 [59/59]
614
+
615
+
616
+
617
+
618
+
619
+ 正常到達
620
+
621
+
622
+
623
+
624
+
625
+
626
+
627
+ # wget http://hoge-global.fuel.local
628
+
629
+ --2017-10-04 19:46:12-- http://hoge-global.fuel.local/
630
+
631
+ hoge-global.fuel.local をDNSに問いあわせています... 127.0.0.1
632
+
633
+ hoge-global.fuel.local|127.0.0.1|:80 に接続しています... 接続しました。
634
+
635
+ HTTP による接続要求を送信しました、応答を待っています... 200 OK
636
+
637
+ 長さ: 42 [text/html]
638
+
639
+ `index.html.2' に保存中
640
+
641
+
642
+
643
+ 100%[===================================================================================================>] 42 --.-K/s 時間 0s
644
+
645
+
646
+
647
+ 2017-10-04 19:46:12 (21.9 MB/s) - `index.html.2' へ保存完了 [42/42]
648
+
649
+
650
+
651
+ 正常到達
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+
661
+ # wget http://hoge_sub.fuel.local
662
+
663
+
664
+
665
+ --2017-10-04 19:46:28-- http://hoge_sub.fuel.local/
666
+
667
+ hoge_sub.fuel.local をDNSに問いあわせています... 127.0.0.1
668
+
669
+ hoge_sub.fuel.local|127.0.0.1|:80 に接続しています... 接続しました。
670
+
671
+ HTTP による接続要求を送信しました、応答を待っています... 400 Bad Request
672
+
673
+ 2017-10-04 19:46:28 エラー 400: Bad Request。
674
+
675
+
676
+
677
+ 400エラーが発生します。
678
+
679
+
680
+
681
+
682
+
683
+ # wget http://hoge_sub.fuel.local/contact/products/
684
+
685
+
686
+
687
+ --2017-10-04 19:46:38-- http://hoge_sub.fuel.local/contact/products/
688
+
689
+ hoge_sub.fuel.local をDNSに問いあわせています... 127.0.0.1
690
+
691
+ hoge_sub.fuel.local|127.0.0.1|:80 に接続しています... 接続しました。
692
+
693
+ HTTP による接続要求を送信しました、応答を待っています... 400 Bad Request
694
+
695
+ 2017-10-04 19:46:38 エラー 400: Bad Request。
696
+
697
+ ```
698
+
699
+
700
+
701
+ 400エラーが発生します。
278
702
 
279
703
 
280
704
 
@@ -298,13 +722,13 @@
298
722
 
299
723
  ```
300
724
 
301
- # grep -e mod_proxy.so -e mod_proxy_ajp.so *
725
+ # grep -e mod_proxy.so -e mod_proxy_ajp.so /etc/httpd/conf/*
302
-
303
-
304
-
726
+
727
+
728
+
305
- httpd.conf:LoadModule proxy_module modules/mod_proxy.so
729
+ /etc/httpd/conf/httpd.conf:LoadModule proxy_module modules/mod_proxy.so
306
-
730
+
307
- httpd.conf:LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
731
+ /etc/httpd/conf/httpd.conf:LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
308
732
 
309
733
  ```
310
734
 
@@ -347,5 +771,3 @@
347
771
  - Apache 2.2.15)
348
772
 
349
773
  - PHP 5.4.45
350
-
351
- - FuelPHP ver 1.7

3

location部分の修正

2017/10/04 03:58

投稿

youko
youko

スコア17

test CHANGED
File without changes
test CHANGED
@@ -226,7 +226,7 @@
226
226
 
227
227
 
228
228
 
229
- <Location "/fr/contact/customer">
229
+ <Location "/sub/contact/customer">
230
230
 
231
231
  ProxyPass http://hoge.fuel.local/contact/customer
232
232
 

2

location 部分を修正しました。 大変申し訳ありません。

2017/10/03 11:46

投稿

youko
youko

スコア17

test CHANGED
File without changes
test CHANGED
@@ -226,11 +226,11 @@
226
226
 
227
227
 
228
228
 
229
- <Location "/contact/customer">
229
+ <Location "/fr/contact/customer">
230
-
230
+
231
- ProxyPass http://hoge-global.fuel.local/contact/customer
231
+ ProxyPass http://hoge.fuel.local/contact/customer
232
-
232
+
233
- ProxyPassReverse http://hoge-front.fuel.local/contact/customer
233
+ ProxyPassReverse http://hoge.fuel.local/contact/customer
234
234
 
235
235
  </Location>
236
236
 

1

</virtualhost>の記述を追加しました。後だしですみません。

2017/10/03 11:45

投稿

youko
youko

スコア17

test CHANGED
File without changes
test CHANGED
@@ -236,6 +236,16 @@
236
236
 
237
237
 
238
238
 
239
+ </VirtualHost>
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
239
249
  <VirtualHost *:80>
240
250
 
241
251
  DocumentRoot /home/web/hoge_sub/app/public