Apache https 证书配置...
没啥好说的..赋值粘贴 !!
Listen 443 SSLSessionCache "shmcb:/apache/logs/ssl_scache(512000)" SSLSessionCacheTimeout 300 <VirtualHost *:443> ServerName abc.cn DocumentRoot "C:/www/htdocs/" SSLEngine on SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5 SSLCertificateFile "conf/sslroot/abc.pem" SSLCertificateKeyFile "conf/sslroot/abc.key" <Directory "C:/www/htdocs/"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>
# 一份完整的配置。
Listen 443 SSLSessionCache "shmcb:/apache/logs/ssl_scache(512000)" SSLSessionCacheTimeout 300 <VirtualHost *:443> ServerName xxx ServerAlias xxx DocumentRoot "C:/Users/Administrator/Desktop/UPUPW_AP7.0/htdocs/" SSLEngine on SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5 SSLCertificateFile "conf/sslroot/wqj.pem" SSLCertificateKeyFile "conf/sslroot/wqj.key" <Directory "C:/Users/Administrator/Desktop/UPUPW_AP7.0/htdocs/"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> # kxxxxx <VirtualHost *:443> SSLEngine on SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5 SSLCertificateFile "conf/sslroot/xxx.pem" SSLCertificateKeyFile "conf/sslroot/xxxx.key" #ServerAdmin 管理员邮箱 ServerName xxxx ServerAlias xxxx ErrorLog "logs/xxx-error.log" CustomLog "logs/xxx-access.log" common ProxyRequests Off ProxyPreserveHost on <Proxy *> Order deny,allow Allow from all </Proxy> <Location /> ProxyPass http://127.0.0.1:8080/ ProxyPassReverse http://127.0.0.1:8080/ </Location> </VirtualHost> # resources <VirtualHost *:443> SSLEngine on SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5 SSLCertificateFile "conf/sslroot/wqj.pem" SSLCertificateKeyFile "conf/sslroot/wqj.key" #ServerAdmin 管理员邮箱 ServerName xxx ServerAlias xxx ErrorLog "logs/xxx-error.log" CustomLog "logs/xxx-access.log" common DocumentRoot "C:/res" <Directory "C:/res"> AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步