Enable https access for apache in win7 ??

Source: Internet
Author: User
Environment: Windows 7 + apache2.4 + php7.0 + mysql5.7 how to configure secure link access like myweb.com locally ?? I have searched Baidu | Google, and I have tried it. this is the url I copied: blog. csdn. netybb35068... generated the certificate...

Environment: window7 + apache2.4 + php7.0 + mysql5.7
How do I configure secure link access like https://myweb.com locally ??

I Baidu | Google have searched, but also tried to do, this is my modeled Web site: http://blog.csdn.net/ybb35068...

The certificate is generated, the certificate is placed in the conf folder under the apache root directory (server. crt, server. key), the ssl_mod is enabled in the configuration file, and the httpd-ssl.conf is enabled.

In the httpd-ssl.conf I configured it like this:

Listen 443 (comment this out, otherwise the error will be reported: port 443 has been used, I decided from this website to do this: http://superuser.com/question ...)

You have added another VM:


  
   
ServerName ftl.com DocumentRoot 'd:/web/frontToolLib '# consistent SSLEngine on SSLCertificateFile' with ftl.com in the httpd-vhost.conf $ {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 and restart apache. However, when accessing:

If the problem persists, can we provide a tutorial on configuring apache to enable https secure access in the latest version of windows ??

Thank you !!

Reply content:

Environment: window7 + apache2.4 + php7.0 + mysql5.7
How do I configure secure link access like https://myweb.com locally ??

I Baidu | Google have searched, but also tried to do, this is my modeled Web site: http://blog.csdn.net/ybb35068...

The certificate is generated, the certificate is placed in the conf folder under the apache root directory (server. crt, server. key), the ssl_mod is enabled in the configuration file, and the httpd-ssl.conf is enabled.

In the httpd-ssl.conf I configured it like this:

Listen 443 (comment this out, otherwise the error will be reported: port 443 has been used, I decided from this website to do this: http://superuser.com/question ...)

You have added another VM:


  
   
ServerName ftl.com DocumentRoot 'd:/web/frontToolLib '# consistent SSLEngine on SSLCertificateFile' with ftl.com in the httpd-vhost.conf $ {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 and restart apache. However, when accessing:

If the problem persists, can we provide a tutorial on configuring apache to enable https secure access in the latest version of windows ??

Thank you !!

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.