windows apache 配置 https:// wss://

<VirtualHost *:443>

ServerName frontt.project.com

ServerAlias

SSLEngine on

SSLCertificateFile "D:/phpstudy_pro/Extensions/Apache2.4.39/conf/ssl/frontt.project.com.crt"

SSLCertificateKeyFile "D:/phpstudy_pro/Extensions/Apache2.4.39/conf/ssl/frontt.project.com.key"

SSLCertificateChainFile "D:/phpstudy_pro/Extensions/Apache2.4.39/conf/ssl/frontt.project.comchain.crt"

FcgidInitialEnv PHPRC "D:/phpstudy_pro/Extensions/php/php7.4.3nts"

AddHandler fcgid-script .php

FcgidWrapper "D:/phpstudy_pro/Extensions/php/php7.4.3nts/php-cgi.exe" .php

<Location /wss>

proxyPass ws://127.0.0.1:29502

ProxyPassReverse ws://127.0.0.1:29502

</Location>

DocumentRoot "E:/project"

<Directory "E:/project">

Options FollowSymLinks ExecCGI

AllowOverride All

Order allow,deny

Allow from all

Require all granted

DirectoryIndex index.php index.html error/index.html

</Directory>

ErrorDocument 400 /error/400.html

ErrorDocument 403 /error/403.html

ErrorDocument 404 /error/404.html

ErrorDocument 500 /error/500.html

ErrorDocument 501 /error/501.html

ErrorDocument 502 /error/502.html

ErrorDocument 503 /error/503.html

ErrorDocument 504 /error/504.html

ErrorDocument 505 /error/505.html

ErrorDocument 506 /error/506.html

ErrorDocument 507 /error/507.html

ErrorDocument 510 /error/510.html

</VirtualHost>

相关推荐
小涛不学习4 小时前
HTTP 和 HTTPS 详解(原理 + 区别 + 面试重点)
http·面试·https
一直都在5725 小时前
HTTPS 加密传输原理
网络协议·http·https
yy55277 小时前
Nginx 安全防护与 HTTPS 部署实战
nginx·安全·https
cheems95278 小时前
[网络原理] HTTPS 加密演进与中间人攻击
网络·网络协议·http·https
爱丽_9 小时前
HTTPS 与 TLS 握手
网络协议·http·https
沐浴露z9 小时前
详解 HTTPS之 TLS 证书信任链
网络协议·https·信任链
卤炖阑尾炎10 小时前
Nginx 安全防护与 HTTPS 部署实战全解析
nginx·安全·https
左左右右左右摇晃11 小时前
HTTP与HTTPS整理
笔记·http·https
2501_9160088912 小时前
移动应用上架到应用商店的完整指南:原理与详细步骤
android·ios·小程序·https·uni-app·iphone·webview
是馄饨呀12 小时前
Apache Tomcat RewriteValve路径遍历漏洞(CVE-2025-55752)修复
java·tomcat·apache