Win7 under Apache to turn on HTTPS access??

Source: Internet
Author: User

Environment: WINDOW7 + apache2.4 + php7.0 + mysql5.7
How to configure secure link access for https://myweb.com??

Me Baidu | Google has been searched, but also tried to do, this is my imitation of the website: http://blog.csdn.net/ybb35068 ...

The certificate is generated, the certificate is placed in the Conf folder in the Apache root directory (SERVER.CRT, Server.key), Ssl_mod is turned on in the configuration file, and httpd-ssl.conf is turned on.

In httpd-ssl.conf I configured this:

Listen 443 (This comment is dropped, otherwise it will be error: 443 port has been used, I am from this site decided to do this: http://superuser.com/question ... )

Add a virtual host yourself:


  
   
    
     ServerName ftl.com  DocumentRoot 'd:/web/frontToolLib' # 和 httpd-vhost.conf 中 ftl.com 的一致  SSLEngine on  SSLCertificateFile '${SRVROOT}/conf/server.crt'  SSLCertificateKeyFile '${SRVROOT}/conf/server.key'
  
   

Then configure the httpd-vhosts.conf file

NameVirtualHost ftl.com:443
  
   
    
     ServerName ftl.com  DocumentRoot 'd:/web/frontToolLib'  
   
    
     
    ...
   
      
   
    
     
    ...
   
    
  
   

Save, restart Apache, can start normally. However, when visiting:

Toss the dead, can you just provide a new version of Windows under configure Apache to turn on HTTPS security access tutorial??

Humbly the Great God!!

Reply content:

Environment: WINDOW7 + apache2.4 + php7.0 + mysql5.7
How to configure secure link access for https://myweb.com??

Me Baidu | Google has been searched, but also tried to do, this is my imitation of the website: http://blog.csdn.net/ybb35068 ...

The certificate is generated, the certificate is placed in the Conf folder in the Apache root directory (SERVER.CRT, Server.key), Ssl_mod is turned on in the configuration file, and httpd-ssl.conf is turned on.

In httpd-ssl.conf I configured this:

Listen 443 (This comment is dropped, otherwise it will be error: 443 port has been used, I am from this site decided to do this: http://superuser.com/question ... )

Add a virtual host yourself:


  
   
    
     ServerName ftl.com  DocumentRoot 'd:/web/frontToolLib' # 和 httpd-vhost.conf 中 ftl.com 的一致  SSLEngine on  SSLCertificateFile '${SRVROOT}/conf/server.crt'  SSLCertificateKeyFile '${SRVROOT}/conf/server.key'
  
   

Then configure the httpd-vhosts.conf file

NameVirtualHost ftl.com:443
  
   
    
     ServerName ftl.com  DocumentRoot 'd:/web/frontToolLib'  
   
    
     
    ...
   
      
   
    
     
    ...
   
    
  
   

Save, restart Apache, can start normally. However, when visiting:

Toss the dead, can you just provide a new version of Windows under configure Apache to turn on HTTPS security access tutorial??

Humbly the Great God!!

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.