この記事は、Apache と TeamPage の間だけでなく、ユーザーと Apache の間も暗号化しない (HTTP) 構成について説明しています。
HTTPS で運用する場合は、FAQ309: Apache を使って TeamPage を HTTPS で運用する をご覧ください。
ServerName winvm.local
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
Alias /error/ "c:/Apache24/error/"
<Directory "c:/Apache24/error/">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Require all granted
</Directory>
ProxyRequests Off
ProxyErrorOverride Off
ErrorDocument 503 /error/503.html
ProxyPass /error/ !
ProxyPass /ws ws://localhost:8080/ws
ProxyPassReverse /ws ws://localhost:8080/ws
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
-k install オプションを付けて httpd を実行します。
Installing the 'Apache2.4' service
The 'Apache2.4' service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
# CustomLog "logs/access.log" common
CustomLog "|C:/Apache24/bin/rotatelogs.exe -l C:/Apache24/logs/acces_log.%Y-%m-%d.log 86400" combined
# ErrorLog "logs/error.log"
ErrorLog "|C:/Apache24/bin/rotatelogs.exe -l C:/Apache24/logs/error_log.%Y-%m-%d.log 86400"
httpd コマンドを実行して起動)。このとき、rotatelogs.
@echo off
for /f "skip=4" %%i in ('dir /b /o-n access_log.*.log') do del %%i
for /f "skip=4" %%i in ('dir /b /o-n error_log.*.log') do del %%i
skip=N で「何世代前まで残すか」を表します。ここでは「skip=7」を設定しているので、「7 日前のログまで残し、それより古いログを削除する」という動作になります。
ErrorDocument 503 /error/503.html
network1.png
network2.png
01_VCRUNTIME140_notfound.png
503.html
05_under_construction.png
rotation.png
httpd_rotatelogs.png
download_2455_vs17.png
apache24_path.png
cmd1.png
firewall.png
it_works.png
tp_login_view.png
install_as_a_service.png
services.png