質問編集履歴

3

追記その3

2019/03/09 00:29

投稿

O-Koji_X
O-Koji_X

スコア8

test CHANGED
File without changes
test CHANGED
@@ -118,13 +118,55 @@
118
118
 
119
119
 
120
120
 
121
+ ② /etc/apache2/sites-available/000-default.conf
122
+
123
+
124
+
125
+ <VirtualHost *:80>
126
+
127
+ ServerAdmin aooa_ok@msn.com
128
+
129
+ DocumentRoot /var/www/html
130
+
131
+ ErrorLog ${APACHE_LOG_DIR}/error.log
132
+
133
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
134
+
135
+ </VirtualHost>
136
+
137
+
138
+
139
+
140
+
141
+ ③ /etc/apache2/sites-available/com-site.conf(注)このファイルを認識しない!大問題だ!
142
+
143
+ <VirtualHost *:80>
144
+
145
+ ServerAdmin aooa_ok@msn.com
146
+
147
+ DocumentRoot /var/www/com-site/public
148
+
149
+ ServerName com-site.a536is.net
150
+
151
+ ErrorLog ${APACHE_LOG_DIR}/error.log
152
+
153
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
154
+
155
+ </VirtualHost>
156
+
157
+
158
+
121
159
 
122
160
 
123
161
  ### 試したこと
124
162
 
125
163
 
126
164
 
165
+ ネットをみて色々と設定ファイルを変更したが・・・全敗!
166
+
127
- ここに問題に対し試しことを記載してください。
167
+ 何とか助け頂きたい。お願い致します。
168
+
169
+
128
170
 
129
171
 
130
172
 
@@ -132,4 +174,4 @@
132
174
 
133
175
 
134
176
 
135
- ここより詳細情報を記載てください。
177
+ になし

2

ソースコード①の追記

2019/03/09 00:29

投稿

O-Koji_X
O-Koji_X

スコア8

test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,12 @@
3
3
 
4
4
 
5
5
  Raspberry pi 3b+(Raspbian)で仮想ホストを構築したい
6
+
7
+
8
+
9
+ すいません。説明不足で・・・
10
+
11
+ この場合の仮想ホストは httpd の仮想サーバー?を指しています。
6
12
 
7
13
 
8
14
 
@@ -20,11 +26,97 @@
20
26
 
21
27
 
22
28
 
23
- ```ここに言語名を入力
29
+ ① /etc/apache2/apache2.conf
24
30
 
25
- ソースコード
26
31
 
32
+
33
+ ServerName www.a536is.net:80
34
+
35
+ DefaultRuntimeDir ${APACHE_RUN_DIR}
36
+
37
+ PidFile ${APACHE_PID_FILE}
38
+
27
- ```
39
+ Timeout 300
40
+
41
+ KeepAlive On
42
+
43
+ MaxKeepAliveRequests 100
44
+
45
+ KeepAliveTimeout 5
46
+
47
+ User ${APACHE_RUN_USER}
48
+
49
+ Group ${APACHE_RUN_GROUP}
50
+
51
+ HostnameLookups Off
52
+
53
+ ErrorLog ${APACHE_LOG_DIR}/error.log
54
+
55
+ LogLevel warn
56
+
57
+ IncludeOptional mods-enabled/*.load
58
+
59
+ IncludeOptional mods-enabled/*.conf
60
+
61
+ Include ports.conf
62
+
63
+ <Directory />
64
+
65
+ Options FollowSymLinks
66
+
67
+ AllowOverride None
68
+
69
+ Require all denied
70
+
71
+ </Directory>
72
+
73
+
74
+
75
+ <Directory /usr/share>
76
+
77
+ AllowOverride None
78
+
79
+ Require all granted
80
+
81
+ </Directory>
82
+
83
+
84
+
85
+ <Directory /var/www/>
86
+
87
+ Options Indexes FollowSymLinks
88
+
89
+ AllowOverride None
90
+
91
+ Require all granted
92
+
93
+ </Directory>
94
+
95
+ AccessFileName .htaccess
96
+
97
+ <FilesMatch "^.ht">
98
+
99
+ Require all denied
100
+
101
+ </FilesMatch>
102
+
103
+ LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
104
+
105
+ LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
106
+
107
+ LogFormat "%h %l %u %t \"%r\" %>s %O" common
108
+
109
+ LogFormat "%{Referer}i -> %U" referer
110
+
111
+ LogFormat "%{User-agent}i" agent
112
+
113
+ IncludeOptional conf-enabled/*.conf
114
+
115
+ IncludeOptional sites-enabled/*.conf
116
+
117
+
118
+
119
+
28
120
 
29
121
 
30
122
 

1

その他の修正

2019/03/08 23:57

投稿

O-Koji_X
O-Koji_X

スコア8

test CHANGED
File without changes
test CHANGED
@@ -2,11 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- ここに質問の内容を詳しく書いてください。
6
-
7
- (例)PHP(CakePHP)で●●なシステムを作っています。
8
-
9
- ■■な機能実装中に以下のエラーメッセージが発生まし
5
+ Raspberry pi 3b+(Raspbian)で仮想ホスト構築した
10
6
 
11
7
 
12
8
 
@@ -14,11 +10,9 @@
14
10
 
15
11
 
16
12
 
17
- ```
13
+ ① 画面が真っ白
18
14
 
19
- エラメッセー
15
+ ② このページは表示できません
20
-
21
- ```
22
16
 
23
17
 
24
18