zoukankan      html  css  js  c++  java
  • Apache2 配置 HTTPS

    打开PHPstudy php扩展设置,在php_openssl上点击打钩

    打开修改httpd.conf配置文件,打开找到  #LoadModule ssl_module modules/mod_ssl.so,(保证前面没有#号去掉前面的注释符),使得ssl模块生效。

    新建 文件 vhostssh.conf

      

    在httpd.conf  内引入新建的文件  Include conf/vhostssh.conf  然后编辑新建的文件 内容为下:
    Listen 443
      <VirtualHost *:443>
        DocumentRoot "C:PerfLogsphpstudyPHPTutorialWWWaysmappserverpublic"
        ServerName www.demo.com
        SSLEngine on
        SSLProtocol TLSv1 TLSv1.1 TLSv1.2
        SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
        SSLCertificateFile "C:PerfLogsphpstudyPHPTutorialApacheconfssl2_www.demo.com.crt"
        SSLCertificateKeyFile "C:PerfLogsphpstudyPHPTutorialApacheconfssl3_www.demo.com.key"
        SSLCertificateChainFile "C:PerfLogsphpstudyPHPTutorialApacheconfssl1_root_bundle.crt"
    
      </VirtualHost>
      <Directory "C:PerfLogsphpstudyPHPTutorialWWWaysmappserverpublic">
    
        Options +Indexes +FollowSymLinks +ExecCGI
    
        Require all granted
    
        AllowOverride All
    
        Order allow,deny
    
        Allow from all
    
      </Directory>

    编写.htaccess 文件

      

     

    注重细节——关注底层——注重细节——关注底层——注重细节——关注底层——注重细节——关注底层——注重细节——关注底层
  • 相关阅读:
    day 48
    40 协程 多路复用
    JQuery
    JS DOMBOM
    psotgres、timescaledb
    crontab命令
    Go语言结构体和方法
    Go语言锁的使用
    Go语言map数据结构
    ZOJ 3777 Problem Arrangement
  • 原文地址:https://www.cnblogs.com/PJG20/p/13197235.html
Copyright © 2011-2022 走看看