回答編集履歴
1
httpd\.conf 追記
test
CHANGED
@@ -7,3 +7,55 @@
|
|
7
7
|
それかアクセスできなくてErrorページが表示されているとかはないですか?
|
8
8
|
|
9
9
|
access_log や error_log を見てみると良いかと思います。
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
----
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
以下のようにDirectoryを追記してみてください。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
```conf:httpd.conf
|
22
|
+
|
23
|
+
NameVirtualHost *:80
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
<VirtualHost *:80>
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
DocumentRoot /home/xxxx
|
32
|
+
|
33
|
+
ServerName xxxx.com
|
34
|
+
|
35
|
+
ServerAlias www.xxxx.com
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
<Directory "/home/xxxx">
|
40
|
+
|
41
|
+
AllowOverride All
|
42
|
+
|
43
|
+
</Directory>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
</VirtualHost>
|
48
|
+
|
49
|
+
```
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
ちなみに httpd.conf を修正するより、
|
54
|
+
|
55
|
+
virtualhost.conf とかで保存したファイルを
|
56
|
+
|
57
|
+
```/etc/httpd/conf.d``` に放り込んだほうが良いかと思います。
|
58
|
+
|
59
|
+
#httpd.conf から Include されています。
|
60
|
+
|
61
|
+
|