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

admin5年前IT技术1425

 <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>

 

相关文章

本人安装Magento2.4.6安装踩坑大集合

1.痛点1 composer 的版本查看命令输入错误,导致我以为我安装失败 composer --version或者 composer -Vcomposer create-proj...

centos共享远程目录

服务器端设置:1.安装依赖包 yum -y install nfs*2.修改文件vim /etc/exports   添加如下内容    /要共享的目...

yt-dlp+ffmpeg

1. 安装Python和ffmpegPython:安装时把pip和添加系统环境变量都选上ffmpeg:下载好exe文件,把目录添加到系统环境变量就行2. 安装yt-dlppip install yt-...

在 CentOS 上设置 Trojan 客户端

在 CentOS 上设置 Trojan 客户端主要涉及以下几个步骤:1. 安装必需的软件首先,确保你的 CentOS 系统已经安装了基本的网络工具和编译工具。你可以通过以下命令安装它们:sudo yu...

我最佩服的程序员,他是一个有想法的程序员,不是一个堆代码的程序员

我最佩服的程序员  尤雨溪:黑客,也是画家  你很难定义尤雨溪属于哪种人才,喜欢漫画,又是HTML 5高手,他是“黑客”与“画家”。  尤雨溪用两天时间...

windows11 的windows安全中心 无法打开

解决方案:1.使用管理员权限从搜索或开始菜单中打开 Windows PowerShell。2.复制并粘贴Get-AppxPackage Microsoft.SecHealthUI -AllUsers...

发表评论    

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