[Quickly and comprehensively master WAMPServer] 10. In the HTTP2.0 era, let WampServer enable SSL!

Network Management Xiaojia/sysadm.cc

Network Management Xiaojia/sysadm.cc

Today's Internet is an era where looks are all about looks, and looks seem to be everything!

Do not believe? Just look at those who sell goods live, and you will know that appearance is absolutely directly proportional to shipments!

And compared to HTTPhim, HTTPShe can definitely be regarded as a handsome guy with good looks. He is safe and classy, ​​and he will be more popular even if he is taken out to go shopping!

In today's Internet era, HTTPSit has long been a popular standard HTTPSto support encryption protection. As long as you are a regular website, you must support it HTTPS.

WampServerAs a commonly used artifact Windowsfor developing and debugging PHPwebsite systems, it is naturally supported HTTPS. However, what many friends don't know is that it is not turned on by default.


What did you say? Still using HTTPit ?

Are you embarrassed to say hello to people when you go out?

That person said, I can use HTTPit easily, it’s not necessary.

Well, actually, there are many situations where you still need to use HTTPS.

For example, the new version webrtc, it fell in love with it HTTPSand HTTPSwould not marry her!

If you use it HTTP, it will not be debugged or used.

Another example is common application programming interfaces such as WeChat. HTTPSIt is an unspoken rule to support it, which is a must!

HTTPSIt’s so awesome, and I’ll need it sooner or later in the future, so why not come and see the correct posture for WampServeropening it together SSL!


Wait, why did another one appear SSL?

In fact, to put it bluntly, HTTPSthe last one Sis this SSL.

I won’t explain too many terms here. In short, we can simply and roughly HTTPSunderstand it as encrypted HTTP.

Friends, please search Baidu for specific explanations of terms. Next, let’s get some serious knowledge: let WampServersupport HTTPSvisit.


### Test environment preparation

We assume that you have installed the following software. Of course, there may be slight differences in program versions, which will not have a big impact on the subsequent experiments.

  • WampServer : 3.2.9 - 64bits

    • Apache: 2.4.51
    • PHP:7.4.26

### Related path variable preset

There are two very important variables. In order to prevent everyone from getting confused, they are listed here.

Name meaning = Change name = Actual path example

  • [Apache安装目录] = ${SRVROOT} = C:\wamp64\bin\apache\apache2.4.51
  • [Wamp安装目录] = ${INSTALL_DIR} = C:/wamp64

SSLSteps to turn on

Step 1 - Confirm that the following files exist and are correct.


Follow Xiaojia, the network administrator, to view all collection contents!


"[Necessary series for beginners to get started with PHP] Quickly and comprehensively master WAMPServer" tutorial list:

[Quickly and comprehensively master WAMPServer] 01. First time meeting, please take care of me

[Quickly and comprehensively master WAMPServer] 02. Things you must know before intimate contact

[Quickly and comprehensively master WAMPServer] 03. Play with installation and upgrades

[Quickly and comprehensively master WAMPServer] 04. First experience in life

[Quickly and comprehensively master WAMPServer] 05. Understand Apache

[Quickly and comprehensively master WAMPServer] 06. Understand PHP

[Quickly and comprehensively master WAMPServer] 07. Understand MySQL and MariaDB

[Quickly and comprehensively master WAMPServer] 08. If you want to play multiple sites, you must understand the creation and use of virtual hosts

[Quickly and comprehensively master WAMPServer] 09. How to install Composer in WAMPServer

[Quickly and comprehensively master WAMPServer] 10. In the HTTP2.0 era, let WampServer enable SSL!

[Quickly and comprehensively master WAMPServer] 11. Pitfalls encountered when installing PHP extensions

[Quickly and comprehensively master WAMPServer] 12. Summary of WAMPServer troubleshooting experience

[Quickly and comprehensively master WAMPServer] 13. Are you having trouble debugging PHP? Ask xDebug to help!

[Quickly and comprehensively master WAMPServer] 14. Upgrading methods of various components

Insert image description here

Guess you like

Origin blog.csdn.net/kydd2008/article/details/135322268