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
I finally finished the project at hand, and the m...
This article uses examples to explain the concept...
Table of contents 1. Problems encountered 2. Anal...
Import the data exported from the Oracle database...
1. Use Centos image to build local yum source Sin...
vue-infinite-scroll Install npm install vue-infin...
Table of contents Introduction to NIS Network env...
Table of contents Preface 1. Common bug fixes in ...
1. Implementation principle of Nginx load balanci...
When I was asked this question, I was ignorant an...
Server: Ubuntu Server 16.04 LSS Client: Ubuntu 16...
Table of contents 3 ways to deploy projects with ...
This article shares the specific code for canvas ...
After the worker process is started, it will firs...
Knowing which for loop or iterator is right for o...