You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/web/mod_SSL_apache.md
+33-31Lines changed: 33 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,16 @@ contributors: Steven Spencer, David Hensley
5
5
update: 20-Jan-2022
6
6
---
7
7
8
-
# 'mod_ssl' on Rocky Linux in an httpd Apache Web-Server Environment
8
+
# `mod_ssl` on Rocky Linux in an Apache web server environment
9
9
10
-
Apache Web-Server has been used for many years now; 'mod_ssl' is used to provide greater security for the Web-Server and can be installed on almost any version of Linux, including Rocky Linux. The installation of 'mod_ssl' will be part of the creation of a Lamp-Server for Rocky Linux.
10
+
The Apache web server has existed for many years now. `mod_ssl` provides greater security for the web server and is installable on almost any version of Linux.
11
11
12
-
This procedure is designed to get you up and running with Rocky Linux using 'mod_ssl' in an Apache Web-Server environment..
12
+
This procedure will get you up and running with Rocky Linux and `mod_ssl` in an Apache web server environment.
13
13
14
14
## Prerequisites
15
15
16
-
* A Workstation or Server, preferably with Rocky Linux already installed.
17
-
*You should be in the Root environment or type `sudo`before all of the commands you enter.
16
+
* A workstation or server, preferably with Rocky Linux already installed.
17
+
*Able to run commands as *root* or `sudo`to elevate privileges.
18
18
19
19
## Install Rocky Linux Minimal
20
20
@@ -23,23 +23,23 @@ When installing Rocky Linux, we used the following sets of packages:
23
23
* Minimal
24
24
* Standard
25
25
26
-
## Run System Update
26
+
## Run updates
27
27
28
-
First, run the system update command to let the server rebuild the repository cache, so that it could recognize the packages available.
28
+
First, run the system update command to let the server rebuild the repository cache to recognize the packages available.
29
29
30
30
`dnf update`
31
31
32
-
## Enabling Repositories
32
+
## Enabling repositories
33
33
34
-
With a conventional Rocky Linux Server Installation all necessary Repositories should be in place.
34
+
With a conventional Rocky Linux server installation, all necessary repositories will be in place.
35
35
36
-
## Check The Available Repositories
36
+
## Check the available repositories
37
37
38
-
Just to be sure check your Repository Listing with:
38
+
Just to be sure check your repository listing with:
39
39
40
40
`dnf repolist`
41
41
42
-
You should get the following back showing all of the enabled repositories:
At this point you should be able to access the Apache Web-Server via HTTPS. Enter `https://your-server-ip` or `https://your-server-hostname` to confirm the 'mod_ssl' configuration.
75
+
Ensure that your goal is to have the website open to the world when you add this rule! If not, change the zone or configure the firewall to correct that.
76
76
77
-
## Generate SSL Certificate
77
+
At this point you should be able to access the Apache web server via HTTPS. Enter `https://your-server-ip` or `https://your-server-hostname` to confirm the `mod_ssl` configuration.
78
78
79
-
To generate a new self-signed certificate for Host rocky8 with 365 days expiry, run:
79
+
## Generate SSL/TLS certificate
80
+
81
+
To generate a self-signed certificate for host rocky8 with 365 days expiry, run:
`https://your-server-ip` or `https://your-server-hostname`
143
145
144
-
## To Redirect All HTTP Traffic To HTTPS
146
+
## To redirect all HTTP traffic to HTTPS
145
147
146
148
Create a new file by running:
147
149
@@ -158,16 +160,16 @@ Insert the following content and save file, replacing "your-server-hostname" wit
158
160
</VirtualHost/>
159
161
```
160
162
161
-
Apply the change when reloading the Apache service by running:
163
+
Apply the change by running:
162
164
163
165
`systemctl reload httpd`
164
166
165
-
The Apache Web-Server will now be configured to redirect any incoming traffic from `http://your-server-hostname` to `https://your-server-hostname` URL.
167
+
The Apache web server will redirect any incoming traffic from `http://your-server-hostname` to `https://your-server-hostname` URL.
166
168
167
-
## Final Steps
169
+
## Final steps
168
170
169
-
We have seen how to install and configure 'mod_ssl'. And, create a new SSL Certificate in order to run a Web-Server under HTTPS Service.
171
+
You have seen how to install and configure `mod_ssl`, and create a new SSL/TLS certificate to run a web server under HTTPS service.
170
172
171
173
## Conclusion
172
174
173
-
This tutorial will be part of the tutorial covering installing a LAMP (Linux, Apache Web-Server, Maria Database-Server, and PHP Scripting Language), Server on Rocky Linux version 8.x. Eventually we will be including images to help better understand the installation.
175
+
This tutorial shows the basic installation and use of `mod_ssl`.
0 commit comments