apache配置SSL以及同一站点多端口配置

admin6年前IT技术1930

 <VirtualHost *:443> 

 ServerName www.ilikegoodproducts.com
 DocumentRoot "C:\Users\Administrator\Desktop\000" 
 DirectoryIndex index.html index.php 
 SSLEngine On
 SSLCertificateChainFile   "C:\phpserver\Apache24\conf\ssl\***.crt"
 SSLCertificateFile  "C:\phpserver\Apache24\conf\ssl\***.crt"   
 SSLCertificateKeyFile   "C:\phpserver\Apache24\conf\ssl\***.key"  
<Directory "C:\Users\Administrator\Desktop\website\000"> 
  Options -Indexes +FollowSymlinks 
  AllowOverride All 
  Require all granted 
 </Directory>  
</VirtualHost>
多端口,设置多个VirtualHost
 <VirtualHost *:80> 
</VirtualHost>

 

相关文章

LINUX-centos7服务器环境安装的那些坑

LINUX-centos7服务器环境安装的那些坑亲自测试能用的第一步 安装php一定要加上--skip-broken,否则根本无法安装,依赖的程序实在是太多了,我走过这个弯路; yum -y...

macbook安装window10 之后导致键盘P键失效与声卡没有声音的解决方案.

macbook安装window10 之后导致键盘P键失效与声卡没有声音解决方案:macbook启动的时候,同时按住command+r键,进入恢复模式大概20分钟之后,按键失效的问题就能解决了,如果声卡...

汇成政府建站CMS系统V1.5

汇成政府建站CMS系统V1.5官方下载地址:˂a target="_blank" href="download/zfhuichengv15.rar"˃点击下载演示地址:ceshi/zhengfucms...

汇成学校建站CMS系统V3.0

汇成学校建站CMS系统V3.0 ˂a target="_blank" href="download/hcschoolv3.0.rar"˃官方下载后台地址:您的地址/admin/login.a...

WireGuard 安装脚本

WireGuard 安装脚本

 执行结束后,会输出一个二维码,可直接用 WireGuard App 扫描导入。4. 客户端配置文件路径/etc/wireguard/client.conf可复制到 Windows、Mac、...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。