質問編集履歴

5

httpd.confファイルの修正

2021/01/25 06:47

投稿

uesugi11
uesugi11

スコア6

test CHANGED
File without changes
test CHANGED
@@ -98,11 +98,75 @@
98
98
 
99
99
 
100
100
 
101
+ #
102
+
103
+ # Relax access to content within /var/www.
104
+
105
+ #
106
+
101
107
  <Directory "/var/www/html/プロジェクトファイル/public">
102
108
 
103
109
  AllowOverride All
104
110
 
105
111
  # Allow open access:
112
+
113
+ Require all granted
114
+
115
+ </Directory>
116
+
117
+
118
+
119
+ # Further relax access to the default document root:
120
+
121
+ <Directory "/var/www/html">
122
+
123
+ #
124
+
125
+ # Possible values for the Options directive are "None", "All",
126
+
127
+ # or any combination of:
128
+
129
+ # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
130
+
131
+ #
132
+
133
+ # Note that "MultiViews" must be named *explicitly* --- "Options All"
134
+
135
+ # doesn't give it to you.
136
+
137
+ #
138
+
139
+ # The Options directive is both complicated and important. Please see
140
+
141
+ # http://httpd.apache.org/docs/2.4/mod/core.html#options
142
+
143
+ # for more information.
144
+
145
+ #
146
+
147
+ Options Indexes FollowSymLinks
148
+
149
+
150
+
151
+ #
152
+
153
+ # AllowOverride controls what directives may be placed in .htaccess files.
154
+
155
+ # It can be "All", "None", or any combination of the keywords:
156
+
157
+ # Options FileInfo AuthConfig Limit
158
+
159
+ #
160
+
161
+ AllowOverride None
162
+
163
+
164
+
165
+ #
166
+
167
+ # Controls who can get stuff from this server.
168
+
169
+ #
106
170
 
107
171
  Require all granted
108
172
 

4

サイトアクセス時のサイト表示

2021/01/25 06:47

投稿

uesugi11
uesugi11

スコア6

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
-
11
+ ![アドレスにアクセスした際の画像](75f00686cd3216634143dba677a798c8.png)
12
12
 
13
13
  ### 試したこと
14
14
 

3

2021/01/25 05:25

投稿

uesugi11
uesugi11

スコア6

test CHANGED
File without changes
test CHANGED
@@ -94,11 +94,11 @@
94
94
 
95
95
  ```ここに言語を入力
96
96
 
97
- DocumentRoot "/var/www/html/プロジェクトファイル"
97
+ DocumentRoot "/var/www/html/プロジェクトファイル/public"
98
98
 
99
99
 
100
100
 
101
- <Directory "/var/www/html/プロジェクトファイル">
101
+ <Directory "/var/www/html/プロジェクトファイル/public">
102
102
 
103
103
  AllowOverride All
104
104
 

2

Apacheのエラーログなどの記載

2021/01/23 06:54

投稿

uesugi11
uesugi11

スコア6

test CHANGED
File without changes
test CHANGED
@@ -86,6 +86,8 @@
86
86
 
87
87
  ### 追記:Apacheの設定
88
88
 
89
+ 追記依頼ありがとうございます。
90
+
89
91
 
90
92
 
91
93
  ファイル:httpd.conf
@@ -123,3 +125,7 @@
123
125
 
124
126
 
125
127
  ```
128
+
129
+
130
+
131
+ よろしくお願い致します。

1

DocumentRootの記載、Apacheでの再起動コマンド、Apacheのエラーログ、Apacheでの設定ファイルの記載

2021/01/23 06:37

投稿

uesugi11
uesugi11

スコア6

test CHANGED
File without changes
test CHANGED
@@ -81,3 +81,45 @@
81
81
 
82
82
 
83
83
  どのようにすれば表示できるのかわかりません。よろしくお願い致します。
84
+
85
+
86
+
87
+ ### 追記:Apacheの設定
88
+
89
+
90
+
91
+ ファイル:httpd.conf
92
+
93
+ ```ここに言語を入力
94
+
95
+ DocumentRoot "/var/www/html/プロジェクトファイル"
96
+
97
+
98
+
99
+ <Directory "/var/www/html/プロジェクトファイル">
100
+
101
+ AllowOverride All
102
+
103
+ # Allow open access:
104
+
105
+ Require all granted
106
+
107
+ </Directory>
108
+
109
+ ```
110
+
111
+ 変更した個所です。
112
+
113
+
114
+
115
+ ### 追記:Apacheエラーログ
116
+
117
+ httpd/error_log
118
+
119
+ ```
120
+
121
+ Cannot serve directory /var/www/html/プロジェクトファイル/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive
122
+
123
+
124
+
125
+ ```