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
Table of contents Preface: 1. Concept 2. The bene...
I was recently working on a project about face co...
<table id=" <%=var1%>">, the...
Table of contents 1. Demand Background 2. Optimiz...
Table of contents 1. Global Guard 1.1 Global fron...
Table of contents Preface Why introduce unit test...
Usage: date [options]... [+format] or: date [-u|-...
The Spring Boot project uses docker containers, j...
After installing wamp for the first time, all ser...
When you log in to MySQL remotely, the account yo...
1. iframe definition and usage The iframe element...
Table of contents Methods of String Object Method...
To query two different tables, you need to merge ...
Preface In the early stages of some projects, dev...
Preface In Linux kernel programming, you will oft...