質問編集履歴

5

新しくわかったことの追記

2016/12/16 11:57

投稿

kra8
kra8

スコア79

test CHANGED
File without changes
test CHANGED
@@ -565,3 +565,17 @@
565
565
  </Directory>
566
566
 
567
567
  ```
568
+
569
+
570
+
571
+ ---
572
+
573
+ 追記
574
+
575
+ 色々調べた結果、どうやらphp7が動作していませんでした。
576
+
577
+ ただ、サーバで`php -v`は実行できるため、
578
+
579
+ apatche上でphpが動いていないように思います。
580
+
581
+ 何かphpが使えるようにする設定があるのでしょうか?

4

不要な文章の削除

2016/12/16 11:57

投稿

kra8
kra8

スコア79

test CHANGED
File without changes
test CHANGED
@@ -260,20 +260,6 @@
260
260
 
261
261
  ```
262
262
 
263
- # This directive overrides the behavior of TRACE for both the core server and
264
-
265
- # mod_proxy. The default TraceEnable on permits TRACE requests per RFC 2616,
266
-
267
- # which disallows any request body to accompany the request. TraceEnable off
268
-
269
- # causes the core server and mod_proxy to return a 405 (Method not allowed)
270
-
271
- # error to the client.
272
-
273
- TraceEnable off
274
-
275
- [ec2-user@ip-172-31-23-181 ~]$ cat /etc/httpd/conf.d/welcome.conf
276
-
277
263
  #
278
264
 
279
265
  # This configuration file enables the default "Welcome" page if there

3

編集依頼の追記

2016/12/16 09:20

投稿

kra8
kra8

スコア79

test CHANGED
File without changes
test CHANGED
@@ -219,3 +219,363 @@
219
219
  `/var/www/laravel/public/`となっています。
220
220
 
221
221
  laravelではプロジェクトフォルダ内のpublicにドキュメントルートを合わせることで、動作する予定で、apatche2.2系では動作していました。
222
+
223
+
224
+
225
+ ---
226
+
227
+ 追記2
228
+
229
+ /etc/httpd/conf/conf.d/*.confに該当するファイルは以下の4つです。
230
+
231
+
232
+
233
+ ・notrace.conf
234
+
235
+ ```
236
+
237
+ # This directive overrides the behavior of TRACE for both the core server and
238
+
239
+ # mod_proxy. The default TraceEnable on permits TRACE requests per RFC 2616,
240
+
241
+ # which disallows any request body to accompany the request. TraceEnable off
242
+
243
+ # causes the core server and mod_proxy to return a 405 (Method not allowed)
244
+
245
+ # error to the client.
246
+
247
+ TraceEnable off
248
+
249
+ ```
250
+
251
+ ・welcome.conf
252
+
253
+ Amazon Linux AMIを作成したときに自動生成されるファイルと思います。
254
+
255
+ ドキュメントルートが見つからない場合、
256
+
257
+ `/var/www/noindex/index.html`が表示されます。
258
+
259
+ このページ内容が「Amazon Linux AMI Test Page」にあたります。
260
+
261
+ ```
262
+
263
+ # This directive overrides the behavior of TRACE for both the core server and
264
+
265
+ # mod_proxy. The default TraceEnable on permits TRACE requests per RFC 2616,
266
+
267
+ # which disallows any request body to accompany the request. TraceEnable off
268
+
269
+ # causes the core server and mod_proxy to return a 405 (Method not allowed)
270
+
271
+ # error to the client.
272
+
273
+ TraceEnable off
274
+
275
+ [ec2-user@ip-172-31-23-181 ~]$ cat /etc/httpd/conf.d/welcome.conf
276
+
277
+ #
278
+
279
+ # This configuration file enables the default "Welcome" page if there
280
+
281
+ # is no default index page present for the root URL. To disable the
282
+
283
+ # Welcome page, comment out all the lines below.
284
+
285
+ #
286
+
287
+ # NOTE: if this file is removed, it will be restored on upgrades.
288
+
289
+ #
290
+
291
+ <LocationMatch "^/+$">
292
+
293
+ Options -Indexes
294
+
295
+ ErrorDocument 403 /.noindex.html
296
+
297
+ </LocationMatch>
298
+
299
+
300
+
301
+ <Directory /var/www/noindex>
302
+
303
+ AllowOverride None
304
+
305
+ Require all granted
306
+
307
+ </Directory>
308
+
309
+
310
+
311
+ Alias /.noindex.html /var/www/noindex/index.html
312
+
313
+ ```
314
+
315
+
316
+
317
+ ・autoindex.conf
318
+
319
+ ```
320
+
321
+ #
322
+
323
+ # Directives controlling the display of server-generated directory listings.
324
+
325
+ #
326
+
327
+ # Required modules: mod_authz_core, mod_authz_host,
328
+
329
+ # mod_autoindex, mod_alias
330
+
331
+ #
332
+
333
+ # To see the listing of a directory, the Options directive for the
334
+
335
+ # directory must include "Indexes", and the directory must not contain
336
+
337
+ # a file matching those listed in the DirectoryIndex directive.
338
+
339
+ #
340
+
341
+
342
+
343
+ #
344
+
345
+ # IndexOptions: Controls the appearance of server-generated directory
346
+
347
+ # listings.
348
+
349
+ #
350
+
351
+ IndexOptions FancyIndexing HTMLTable VersionSort
352
+
353
+
354
+
355
+ # We include the /icons/ alias for FancyIndexed directory listings. If
356
+
357
+ # you do not use FancyIndexing, you may comment this out.
358
+
359
+ #
360
+
361
+ Alias /icons/ "/var/www/icons/"
362
+
363
+
364
+
365
+ <Directory "/var/www/icons">
366
+
367
+ Options Indexes MultiViews FollowSymlinks
368
+
369
+ AllowOverride None
370
+
371
+ Require all granted
372
+
373
+ </Directory>
374
+
375
+
376
+
377
+ #
378
+
379
+ # AddIcon* directives tell the server which icon to show for different
380
+
381
+ # files or filename extensions. These are only displayed for
382
+
383
+ # FancyIndexed directories.
384
+
385
+ #
386
+
387
+ AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
388
+
389
+
390
+
391
+ AddIconByType (TXT,/icons/text.gif) text/*
392
+
393
+ AddIconByType (IMG,/icons/image2.gif) image/*
394
+
395
+ AddIconByType (SND,/icons/sound2.gif) audio/*
396
+
397
+ AddIconByType (VID,/icons/movie.gif) video/*
398
+
399
+
400
+
401
+ AddIcon /icons/binary.gif .bin .exe
402
+
403
+ AddIcon /icons/binhex.gif .hqx
404
+
405
+ AddIcon /icons/tar.gif .tar
406
+
407
+ AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
408
+
409
+ AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
410
+
411
+ AddIcon /icons/a.gif .ps .ai .eps
412
+
413
+ AddIcon /icons/layout.gif .html .shtml .htm .pdf
414
+
415
+ AddIcon /icons/text.gif .txt
416
+
417
+ AddIcon /icons/c.gif .c
418
+
419
+ AddIcon /icons/p.gif .pl .py
420
+
421
+ AddIcon /icons/f.gif .for
422
+
423
+ AddIcon /icons/dvi.gif .dvi
424
+
425
+ AddIcon /icons/uuencoded.gif .uu
426
+
427
+ AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
428
+
429
+ AddIcon /icons/tex.gif .tex
430
+
431
+ AddIcon /icons/bomb.gif core.
432
+
433
+
434
+
435
+ AddIcon /icons/back.gif ..
436
+
437
+ AddIcon /icons/hand.right.gif README
438
+
439
+ AddIcon /icons/folder.gif ^^DIRECTORY^^
440
+
441
+ AddIcon /icons/blank.gif ^^BLANKICON^^
442
+
443
+
444
+
445
+ #
446
+
447
+ # DefaultIcon is which icon to show for files which do not have an icon
448
+
449
+ # explicitly set.
450
+
451
+ #
452
+
453
+ DefaultIcon /icons/unknown.gif
454
+
455
+
456
+
457
+ #
458
+
459
+ # AddDescription allows you to place a short description after a file in
460
+
461
+ # server-generated indexes. These are only displayed for FancyIndexed
462
+
463
+ # directories.
464
+
465
+ # Format: AddDescription "description" filename
466
+
467
+ #
468
+
469
+ #AddDescription "GZIP compressed document" .gz
470
+
471
+ #AddDescription "tar archive" .tar
472
+
473
+ #AddDescription "GZIP compressed tar archive" .tgz
474
+
475
+
476
+
477
+ #
478
+
479
+ # ReadmeName is the name of the README file the server will look for by
480
+
481
+ # default, and append to directory listings.
482
+
483
+ #
484
+
485
+ # HeaderName is the name of a file which should be prepended to
486
+
487
+ # directory indexes.
488
+
489
+ ReadmeName README.html
490
+
491
+ HeaderName HEADER.html
492
+
493
+
494
+
495
+ #
496
+
497
+ # IndexIgnore is a set of filenames which directory indexing should ignore
498
+
499
+ # and not include in the listing. Shell-style wildcarding is permitted.
500
+
501
+ #
502
+
503
+ IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
504
+
505
+ ```
506
+
507
+ ・userdir.conf
508
+
509
+ ```
510
+
511
+ #
512
+
513
+ # UserDir: The name of the directory that is appended onto a user's home
514
+
515
+ # directory if a ~user request is received.
516
+
517
+ #
518
+
519
+ # The path to the end user account 'public_html' directory must be
520
+
521
+ # accessible to the webserver userid. This usually means that ~userid
522
+
523
+ # must have permissions of 711, ~userid/public_html must have permissions
524
+
525
+ # of 755, and documents contained therein must be world-readable.
526
+
527
+ # Otherwise, the client will only receive a "403 Forbidden" message.
528
+
529
+ #
530
+
531
+ <IfModule mod_userdir.c>
532
+
533
+ #
534
+
535
+ # UserDir is disabled by default since it can confirm the presence
536
+
537
+ # of a username on the system (depending on home directory
538
+
539
+ # permissions).
540
+
541
+ #
542
+
543
+ UserDir disabled
544
+
545
+
546
+
547
+ #
548
+
549
+ # To enable requests to /~user/ to serve the user's public_html
550
+
551
+ # directory, remove the "UserDir disabled" line above, and uncomment
552
+
553
+ # the following line instead:
554
+
555
+ #
556
+
557
+ #UserDir public_html
558
+
559
+ </IfModule>
560
+
561
+
562
+
563
+ #
564
+
565
+ # Control access to UserDir directories. The following is an example
566
+
567
+ # for a site where these directories are restricted to read-only.
568
+
569
+ #
570
+
571
+ <Directory "/home/*/public_html">
572
+
573
+ AllowOverride FileInfo AuthConfig Limit Indexes
574
+
575
+ Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
576
+
577
+ Require method GET POST OPTIONS
578
+
579
+ </Directory>
580
+
581
+ ```

2

追記

2016/12/16 09:18

投稿

kra8
kra8

スコア79

test CHANGED
File without changes
test CHANGED
@@ -207,3 +207,15 @@
207
207
  Laravel Framework version 5.3.18
208
208
 
209
209
  ```
210
+
211
+ ---
212
+
213
+ 追記
214
+
215
+
216
+
217
+ ディレクトクリ構成は
218
+
219
+ `/var/www/laravel/public/`となっています。
220
+
221
+ laravelではプロジェクトフォルダ内のpublicにドキュメントルートを合わせることで、動作する予定で、apatche2.2系では動作していました。

1

2016/12/15 01:24

投稿

kra8
kra8

スコア79

test CHANGED
File without changes
test CHANGED
File without changes