質問編集履歴
5
プロジェクトのディレクトリを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,7 +4,10 @@
|
|
4
4
|
|
5
5
|
また、virtulahostの設定を別のconfファイルに書いたのですが、そちらにもDocumentRootを記載してます。このように複数の関連ファイルに同じ内容の複数の記載があってもエラーの原因にはならないのでしょうか??
|
6
6
|
よろしくお願いします。
|
7
|
+
cd /var/www/html/hitobito/下のファイルになります。
|
7
8
|
|
9
|
+

|
10
|
+
|
8
11
|
<試した事>
|
9
12
|
①/var/www/html/hitbito/ディレクトリの所有権をapacheに変更
|
10
13
|
②エラーログの確認
|
4
コードの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,9 +27,7 @@
|
|
27
27
|
# Relax access to content within /var/www.
|
28
28
|
#
|
29
29
|
<Directory "/var/www/html/hitobito/public">
|
30
|
-
AllowOverride None
|
31
|
-
# Allow open access:
|
32
|
-
|
30
|
+
Require all granted
|
33
31
|
</Directory>
|
34
32
|
|
35
33
|
|
@@ -39,9 +37,8 @@
|
|
39
37
|
# explicitly permit access to web content directories in other
|
40
38
|
# <Directory> blocks below.
|
41
39
|
#
|
42
|
-
<Directory />
|
40
|
+
<Directory /var/www/html/hitobito/public>
|
43
|
-
AllowOverride none
|
44
|
-
Require all
|
41
|
+
Require all granted
|
45
42
|
</Directory>
|
46
43
|
|
47
44
|
|
3
SELinuxをオフ 追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
```
|
14
14
|
③以下の記事を参考にApache2.4系の記載ルールを確認
|
15
15
|
https://www.softel.co.jp/blogs/tech/archives/3142
|
16
|
-
|
16
|
+
④SELinuxをオフ
|
17
17
|
```
|
18
18
|
/etc/httpd/conf/httpd.conf
|
19
19
|
|
2
Apacheのバージョン追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
EC2内でLaravelの環境を構築してます。そこで、最後のブラウザから表示させる段階で詰まってしまい。解決できずにいます。エラーとしては403のパーミッションエラーです。
|
2
2
|
もしかしたら私の認識違いでhttpd.confの記載方法を間違えてる可能性もあるので、アドバイスを頂戴したいです。
|
3
|
+
Apacheのバージョンは2.4です。
|
3
4
|
|
4
5
|
また、virtulahostの設定を別のconfファイルに書いたのですが、そちらにもDocumentRootを記載してます。このように複数の関連ファイルに同じ内容の複数の記載があってもエラーの原因にはならないのでしょうか??
|
5
6
|
よろしくお願いします。
|
@@ -10,8 +11,10 @@
|
|
10
11
|
``````
|
11
12
|
Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html,index.php) found, and server-generated directory index forbidden by Options directive
|
12
13
|
```
|
14
|
+
③以下の記事を参考にApache2.4系の記載ルールを確認
|
15
|
+
https://www.softel.co.jp/blogs/tech/archives/3142
|
16
|
+
|
13
17
|
```
|
14
|
-
```
|
15
18
|
/etc/httpd/conf/httpd.conf
|
16
19
|
|
17
20
|
# DocumentRoot: The directory out of which you will serve your
|
1
誤字修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,8 +10,6 @@
|
|
10
10
|
``````
|
11
11
|
Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html,index.php) found, and server-generated directory index forbidden by Options directive
|
12
12
|
```
|
13
|
-
③
|
14
|
-
コード
|
15
13
|
```
|
16
14
|
```
|
17
15
|
/etc/httpd/conf/httpd.conf
|