In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
There are two projects on the server, both of which need to be configured with https, so I applied for two second-level free certificates in Aliyun.
Bloggers use phpstudy, and if you use other integrated environments, it's actually pretty much the same, just refer to it and change it.
one。 Apply for a certificate (I use Ali's domain name here)
1. Log in to Aliyun, click the domain name, find the domain name for which you want to configure ssl, and click the ssl certificate behind.
two。 What I am applying for here is a free single domain name certificate. Click OK to submit it to Aliyun for approval. It will take about 10-20 minutes to review.
3. Click the menu on the left, select the corresponding certificate for the domain name you want to configure, and click download below
4. My environment is apache, here I download is apache.
2. Configure ssl
1. Configure the site on the server
two。 Modify http.conf
(1) # before removing LoadModule ssl_module modules/mod_ssl.so
(2) find the sentence # Include conf/extra/httpd-ssl.conf, so we don't need to bring our own file here. I created a new file.
(3) create this file
(4) create a new cert folder and put the certificate files you just downloaded (4) into this file
If you want to configure two ssl, create a folder for another certificate file
Here I built two folders, api and certlzf, respectively.
(5) Editing vhosts-ssl.conf files
Here, restart apache and enter the domain name that has just been configured.
The code of vhost-ssl.conf is attached below
Listen 443 DocumentRoot "here change to the absolute path of your project" ServerName here change to the domain name you want to configure ServerAlias here change to the domain name you want to configure SSLEngine on SSLProtocol TLSv1 TLSv1.1 TLSv1.2 SSLCipherSuite Higgu Med Med UnitaNULLLRU MD5 SSLCertificateFile "here change to the absolute path of your public key" here change to the absolute path of your private key "SSLCertificateChainFile" here change to the absolute path of your certificate chain "Options FollowSymLinks ExecCGI AllowOverride All Order allow" Deny Allow from all Require all granted DocumentRoot "change here to the absolute path of your project ServerName here to the domain name ServerAlias you want to configure, here to the domain name you want to configure, SSLEngine on SSLProtocol TLSv1 TLSv1.1 TLSv1.2 SSLCipherSuite Higgu Med MUDIUMU NULLRV MD5 SSLCertificateFile" here to the absolute path of your public key "SSLCertificateKeyFile" here to the absolute path of your private key "SSLCertificateChainFile" here to the absolute path of your certificate chain "Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted"
Summary
The above is the method of configuring multiple ssl certificates to build multiple sites under the Apache environment introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.