apache:activate_ssl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
apache:activate_ssl [2019/12/04 23:54] – [Configure the Virtual Host] peter | apache:activate_ssl [2022/06/14 08:16] (current) – [Configure the Virtual Host] peter | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Create folder for ssl certificate and key ===== | ===== Create folder for ssl certificate and key ===== | ||
- | <code bash> | ||
sudo mkdir / | sudo mkdir / | ||
- | </ | ||
---- | ---- | ||
Line 20: | Line 18: | ||
<WRAP notice> | <WRAP notice> | ||
- | **NOTE**: | + | **NOTE**: |
- | </ | + | |
Be sure to keep the intermediate files (.key and .csr) that you create in this step. | Be sure to keep the intermediate files (.key and .csr) that you create in this step. | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
---- | ---- | ||
Line 29: | Line 30: | ||
===== Activate SSL ===== | ===== Activate SSL ===== | ||
- | < | + | Issue the following command: |
+ | |||
+ | < | ||
a2enmod ssl | a2enmod ssl | ||
</ | </ | ||
Line 85: | Line 88: | ||
<WRAP info> | <WRAP info> | ||
**NOTE**: You can also put the line **NameVirtualHost [your IP address]: | **NOTE**: You can also put the line **NameVirtualHost [your IP address]: | ||
+ | |||
</ | </ | ||
Line 108: | Line 112: | ||
</ | </ | ||
- | ---- | ||
- | ===== Restart apache | + | Restart apache, and your site should work |
- | + | ||
- | <code bash> | + | |
- | # httpd -k graceful | + | |
- | </ | + | |
- | + | ||
- | Your site should work. | + | |
---- | ---- | ||
===== References ===== | ===== References ===== | ||
+ | |||
* https:// | * https:// | ||
* http:// | * http:// | ||
+ | |||
+ | |||
apache/activate_ssl.1575503658.txt.gz · Last modified: 2020/07/15 09:30 (external edit)