This article describes how to enable https service in Apache under Linux environment. Share with you for your reference, the details are as follows: First, apply for an SSL certificate. Taking Alibaba Cloud as an example, find the domain name management: Free SSL certificate: Configure a single domain name free certificate: (valid for one year) Click OK to verify the certificate: After successful review, you can download the certificate: Download the SSL certificate for Apache: I unzipped these three and put them in the Apache installation directory /etc/httpd/cert Add this to httpd.conf (import all conf files under the conf.d folder): Include conf.d/*.conf Run these two: yum install mod_ssl yum install openssl openssl-devel Find this file /etc/httpd/conf.d/ssl.conf : Replace all contents: <VirtualHost *:443> DocumentRoot "/var/www/html" ServerName www.msllws.top SSLEngine on SSLCertificateFile /etc/httpd/cert/932538_www.msllws.top_public.crt SSLCertificateKeyFile /etc/httpd/cert/932538_www.msllws.top.key SSLCertificateChainFile /etc/httpd/cert/932538_www.msllws.top_chain.crt </VirtualHost> NameVirtualHost *:443 Then you can access https I hope this article will help you configure your Linux server. You may also be interested in:
|
<<: How to use axios request in Vue project
This article is mainly for those who do not under...
Preface Everyone should be familiar with the watc...
The execution efficiency of MySQL database has a ...
Change the default style of select, usually throug...
1. Introduction I have taken over a project of th...
Table of contents Math Objects Common properties ...
Standardized design solutions - markup languages ...
BackUpMysql.sh script #!/bin/bash PATH=/bin:/sbin...
When Mysql associates two tables, an error messag...
Table of contents first step: The second step is ...
Counting the number of a string in a file is actu...
You can easily input Chinese and get Chinese outp...
tomcat official website tomcat is equivalent to a...
The latest Insider version of Visual Studio Code ...
This article shares the specific code for the WeC...