summaryrefslogtreecommitdiff
path: root/articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.md
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@simplelittledream.com>2022-03-24 15:49:06 -0400
committerJacob McDonnell <jacob@simplelittledream.com>2022-03-24 15:49:06 -0400
commit4eb7b2f7faeaa41755d784f49f2fd73cb2d7b87f (patch)
treeb2519c4e343ef1ed754b8f0fa959610e8edba42d /articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.md
parentd3bb64a6725b4c0e4077d91685a8cd9cc1531b7e (diff)
updated rpi4 server article
Diffstat (limited to 'articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.md')
-rw-r--r--articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.md12
1 files changed, 5 insertions, 7 deletions
diff --git a/articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.md b/articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.md
index 5274f78..fa93505 100644
--- a/articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.md
+++ b/articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.md
@@ -1,5 +1,3 @@
-
-
# Hosting a Website on the Raspberry Pi with Rocky Linux
First Download Rocky Linux for the Raspberry Pi 3 & 4 from [their website](https://rockylinux.org/alternative-images).![Screen Shot 2022-02-19 at 2.15.13 PM](img/Screen Shot 2022-02-19 at 2.15.13 PM.png)
@@ -103,10 +101,10 @@ sudo mv /etc/fail2ban/jail.d/00-firewalld.conf /etc/fail2ban/jail.d/00-firewalld
sudo systemctl restart fail2ban
```
-To create an SSH jail, edit the ssh config file with vim or nano:
+To create an SSH jail, edit the ssh config file with nano or vim:
```sh
-sudo vim /etc/fail2ban/jail.d/sshd.local
+sudo nano /etc/fail2ban/jail.d/sshd.local
```
Paste the following into the file and change the values as you see fit:
@@ -156,7 +154,7 @@ sudo dnf install ddclient
Now, we want to edit the config file for ddclient:
```sh
-sudo vim /etc/ddclient.conf
+sudo nano /etc/ddclient.conf
```
You'll want to look for where it says `protocol=dyndns2`, and enter your information:
@@ -230,7 +228,7 @@ sudo chmod -R 755 /var/www/websiteName
Now, we will create the config file for website:
```sh
-sudo vim /etc/nginx/conf.d/websiteName.conf
+sudo nano /etc/nginx/conf.d/websiteName.conf
```
and paste the following into the file:
@@ -302,4 +300,4 @@ and add the following line:
This will check everyday at noon to see if the certificate will expire in the next month, if so it will renew the certificate.
-Now your website should be operational. \ No newline at end of file
+Now your website should be operational.