質問編集履歴
2
httpd.confにListen及び対応するVirtualHost記述を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -72,6 +72,16 @@
|
|
72
72
|
|
73
73
|
|
74
74
|
|
75
|
+
Listen 80
|
76
|
+
|
77
|
+
Listen 1001
|
78
|
+
|
79
|
+
Listen 2001
|
80
|
+
|
81
|
+
Listen 3001
|
82
|
+
|
83
|
+
Listen 4001
|
84
|
+
|
75
85
|
Listen 5001
|
76
86
|
|
77
87
|
|
@@ -284,6 +294,80 @@
|
|
284
294
|
|
285
295
|
|
286
296
|
|
297
|
+
<VirtualHost *:1001>
|
298
|
+
|
299
|
+
DocumentRoot "htdocs/app/APP1"
|
300
|
+
|
301
|
+
WSGIScriptAlias / "htdocs/app/APP1/main.wsgi"
|
302
|
+
|
303
|
+
<Directory "htdocs/app/APP1">
|
304
|
+
|
305
|
+
Require all granted
|
306
|
+
|
307
|
+
</Directory>
|
308
|
+
|
309
|
+
</VirtualHost>
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
<VirtualHost *:2001>
|
314
|
+
|
315
|
+
DocumentRoot "htdocs/app/APP2"
|
316
|
+
|
317
|
+
WSGIScriptAlias / "htdocs/app/APP2/main.wsgi"
|
318
|
+
|
319
|
+
<Directory "htdocs/app/APP2">
|
320
|
+
|
321
|
+
<Files main.wsgi>
|
322
|
+
|
323
|
+
Require all granted
|
324
|
+
|
325
|
+
</Files>
|
326
|
+
|
327
|
+
</Directory>
|
328
|
+
|
329
|
+
</VirtualHost>
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
<VirtualHost *:3001>
|
334
|
+
|
335
|
+
DocumentRoot "htdocs/app/APP3"
|
336
|
+
|
337
|
+
WSGIScriptAlias / "htdocs/app/APP3/main.wsgi"
|
338
|
+
|
339
|
+
<Directory "htdocs/app/APP3">
|
340
|
+
|
341
|
+
Require all granted
|
342
|
+
|
343
|
+
</Directory>
|
344
|
+
|
345
|
+
</VirtualHost>
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
<VirtualHost *:4001>
|
350
|
+
|
351
|
+
DocumentRoot "htdocs/app/APP4"
|
352
|
+
|
353
|
+
WSGIScriptAlias / "htdocs/app/APP4/main.wsgi"
|
354
|
+
|
355
|
+
WSGIApplicationGroup %{GLOBAL}
|
356
|
+
|
357
|
+
<Directory "htdocs/app/APP4">
|
358
|
+
|
359
|
+
<Files main.wsgi>
|
360
|
+
|
361
|
+
Require all granted
|
362
|
+
|
363
|
+
</Files>
|
364
|
+
|
365
|
+
</Directory>
|
366
|
+
|
367
|
+
</VirtualHost>
|
368
|
+
|
369
|
+
|
370
|
+
|
287
371
|
<VirtualHost *:5001>
|
288
372
|
|
289
373
|
DocumentRoot "htdocs/app/sample"
|
1
httpd.confの記述内容を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -52,7 +52,7 @@
|
|
52
52
|
|
53
53
|
### エラーメッセージ(apache)
|
54
54
|
|
55
|
-
```
|
55
|
+
```apache
|
56
56
|
|
57
57
|
[Thu Dec 31 07:34:43.863129 2020] [authz_core:error] [pid 16632:tid 1256] [client ::1:64153] AH01630: client denied by server configuration: C:/Users/USERNAME/Documents/ディレクトリ名/htdocs
|
58
58
|
|
@@ -60,6 +60,248 @@
|
|
60
60
|
|
61
61
|
|
62
62
|
|
63
|
+
### httpd.conf
|
64
|
+
|
65
|
+
```httpd
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
Define SRVROOT "c:/Apache24"
|
70
|
+
|
71
|
+
ServerRoot "${SRVROOT}"
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
Listen 5001
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
LoadModule actions_module modules/mod_actions.so
|
80
|
+
|
81
|
+
LoadModule alias_module modules/mod_alias.so
|
82
|
+
|
83
|
+
LoadModule allowmethods_module modules/mod_allowmethods.so
|
84
|
+
|
85
|
+
LoadModule asis_module modules/mod_asis.so
|
86
|
+
|
87
|
+
LoadModule auth_basic_module modules/mod_auth_basic.so
|
88
|
+
|
89
|
+
LoadModule authn_core_module modules/mod_authn_core.so
|
90
|
+
|
91
|
+
LoadModule authn_file_module modules/mod_authn_file.so
|
92
|
+
|
93
|
+
LoadModule authz_core_module modules/mod_authz_core.so
|
94
|
+
|
95
|
+
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
|
96
|
+
|
97
|
+
LoadModule authz_host_module modules/mod_authz_host.so
|
98
|
+
|
99
|
+
LoadModule authz_user_module modules/mod_authz_user.so
|
100
|
+
|
101
|
+
LoadModule autoindex_module modules/mod_autoindex.so
|
102
|
+
|
103
|
+
LoadModule cgi_module modules/mod_cgi.so
|
104
|
+
|
105
|
+
LoadModule dir_module modules/mod_dir.so
|
106
|
+
|
107
|
+
LoadModule env_module modules/mod_env.so
|
108
|
+
|
109
|
+
LoadModule include_module modules/mod_include.so
|
110
|
+
|
111
|
+
LoadModule isapi_module modules/mod_isapi.so
|
112
|
+
|
113
|
+
LoadModule log_config_module modules/mod_log_config.so
|
114
|
+
|
115
|
+
LoadModule mime_module modules/mod_mime.so
|
116
|
+
|
117
|
+
LoadModule negotiation_module modules/mod_negotiation.so
|
118
|
+
|
119
|
+
LoadModule setenvif_module modules/mod_setenvif.so
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<IfModule unixd_module>
|
124
|
+
|
125
|
+
User daemon
|
126
|
+
|
127
|
+
Group daemon
|
128
|
+
|
129
|
+
</IfModule>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
ServerAdmin admin@example.com
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
ServerName localhost:80
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<Directory />
|
142
|
+
|
143
|
+
AllowOverride none
|
144
|
+
|
145
|
+
Require all denied
|
146
|
+
|
147
|
+
</Directory>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
DocumentRoot "${SRVROOT}/htdocs"
|
152
|
+
|
153
|
+
<Directory "${SRVROOT}/htdocs">
|
154
|
+
|
155
|
+
Options Indexes FollowSymLinks ExecCGI
|
156
|
+
|
157
|
+
AllowOverride None
|
158
|
+
|
159
|
+
Require all granted
|
160
|
+
|
161
|
+
</Directory>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<IfModule dir_module>
|
166
|
+
|
167
|
+
DirectoryIndex index.html
|
168
|
+
|
169
|
+
</IfModule>
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<Files ".ht*">
|
174
|
+
|
175
|
+
Require all denied
|
176
|
+
|
177
|
+
</Files>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
ErrorLog "logs/error.log"
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
LogLevel warn
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<IfModule log_config_module>
|
190
|
+
|
191
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
192
|
+
|
193
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
<IfModule logio_module>
|
198
|
+
|
199
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
|
200
|
+
|
201
|
+
</IfModule>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
CustomLog "logs/access.log" common
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
</IfModule>
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
<IfModule alias_module>
|
214
|
+
|
215
|
+
ScriptAlias /cgi-bin/ "${SRVROOT}/cgi-bin/"
|
216
|
+
|
217
|
+
</IfModule>
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
<IfModule cgid_module>
|
222
|
+
|
223
|
+
</IfModule>
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
<Directory "${SRVROOT}/cgi-bin">
|
228
|
+
|
229
|
+
AllowOverride None
|
230
|
+
|
231
|
+
Options None
|
232
|
+
|
233
|
+
Require all granted
|
234
|
+
|
235
|
+
</Directory>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
<IfModule headers_module>
|
240
|
+
|
241
|
+
RequestHeader unset Proxy early
|
242
|
+
|
243
|
+
</IfModule>
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
<IfModule mime_module>
|
248
|
+
|
249
|
+
TypesConfig conf/mime.types
|
250
|
+
|
251
|
+
AddType application/x-compress .Z
|
252
|
+
|
253
|
+
AddType application/x-gzip .gz .tgz
|
254
|
+
|
255
|
+
AddHandler cgi-script .cgi .py
|
256
|
+
|
257
|
+
</IfModule>
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
<IfModule proxy_html_module>
|
262
|
+
|
263
|
+
Include conf/extra/proxy-html.conf
|
264
|
+
|
265
|
+
</IfModule>
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
<IfModule ssl_module>
|
270
|
+
|
271
|
+
SSLRandomSeed startup builtin
|
272
|
+
|
273
|
+
SSLRandomSeed connect builtin
|
274
|
+
|
275
|
+
</IfModule>
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
LoadFile "c:/users/USERNAME/appdata/local/programs/python/python38/python38.dll"
|
280
|
+
|
281
|
+
LoadModule wsgi_module "c:/users/USERNAME/appdata/local/programs/python/python38/lib/site-packages/mod_wsgi/server/mod_wsgi.cp38-win_amd64.pyd"
|
282
|
+
|
283
|
+
WSGIPythonHome "c:/users/USERNAME/appdata/local/programs/python/python38"
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
<VirtualHost *:5001>
|
288
|
+
|
289
|
+
DocumentRoot "htdocs/app/sample"
|
290
|
+
|
291
|
+
WSGIScriptAlias / "htdocs/app/sample/main.wsgi"
|
292
|
+
|
293
|
+
<Directory "htdocs/app/sample">
|
294
|
+
|
295
|
+
Require all granted
|
296
|
+
|
297
|
+
</Directory>
|
298
|
+
|
299
|
+
</VirtualHost>
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
```
|
304
|
+
|
63
305
|
気になるのが、エラーメッセージで返ってくるパスの末尾に**htdocs**が追加されていることです。
|
64
306
|
|
65
307
|
|