没啥好说的..赋值粘贴 !!
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>