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
LoadModule ssl_module modules/mod_ssl.so
LoadModule headers_module modules/mod_headers.so
openssl genrsa -out server.key 2048
[ req ]
default_bits = 2048
distinguished_name = req_distinguished_name
req_extensions = req_ext
prompt = no
[ req_distinguished_name ]
C = JP
ST = Tokyo
L = Chiyoda
O = My Company
CN = winvm.local
[ req_ext ]
subjectAltName = @alt_names
[ alt_names ]
DNS.1 = winvm.local
openssl req -new -key server.key -out server.csr -config san.cnf
openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt -extensions req_ext -extfile san.cnf
PS C:\Apache24\conf\ssl> dir
ディレクトリ: C:\Apache24\conf\ssl
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2025/03/26 16:42 291 san.cnf
-a---- 2025/03/26 16:44 1150 server.crt
-a---- 2025/03/26 16:43 910 server.csr
-a---- 2025/03/26 16:42 1732 server.key
Listen 443
<VirtualHost *:443>
ServerName winvm.local
SSLEngine on
SSLCertificateFile "c:/Apache24/conf/ssl/server.crt"
SSLCertificateKeyFile "c:/Apache24/conf/ssl/server.key"
ErrorDocument 503 /error/503.html
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
ProxyRequests Off
ProxyErrorOverride Off
ProxyPass /error/ !
ProxyPass /ws ws://localhost:8080/ws
ProxyPassReverse /ws ws://localhost:8080/ws
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
</VirtualHost>
<VirtualHost *:80>
ServerName winvm.local
Redirect permanent / https://winvm.local/
</VirtualHost>
Off を指定してください。 On にすると、TeamPage が返す認証要求(HTTP 401)まで Apache が差し替えてしまい、Claude 連携(MCP)などの認証が必要な機能が動作しなくなります。Off にしても、下記「メンテナンス中のお知らせ表示」の 503 画面は正常に動作します。TeamPage が停止しているときの 503 は Apache 自身が生成するものであり、この設定の対象外だからです。
curl.exe -k -i https://winvm.local/traction
HTTP/1.1 302 Found
Server: Apache/2.4.63 (Win64) OpenSSL/3.4.1
Location: https://winvm.local/traction?type=home&handler=auth&...
curl.exe -i http://winvm.local/
img01.png
img02.png
img03.png
img04.png
img05.png
img06.png
img07.png
img09.png
img10.png
img11.png
img12.png
img13.png
img14.png
img15.png
img16.png
img17.png
img18.png
apache_image.jpg