diff --git a/docs/guides/web-servers/caddy/how-to-install-and-configure-caddy-on-centos-8/index.md b/docs/guides/web-servers/caddy/how-to-install-and-configure-caddy-on-centos-8/index.md deleted file mode 100644 index 05744672608..00000000000 --- a/docs/guides/web-servers/caddy/how-to-install-and-configure-caddy-on-centos-8/index.md +++ /dev/null @@ -1,134 +0,0 @@ ---- -slug: how-to-install-and-configure-caddy-on-centos-8 -title: "Install and Configure the Caddy Web Server on CentOS 8" -title_meta: "How to Install and Configure the Caddy Web Server on CentOS 8" -description: "In this guide, you will install the Caddy web server on CentOS 8. You will also configure Caddy to serve your site's domain over HTTPS." -authors: ["Linode"] -contributors: ["Linode"] -published: 2020-03-05 -keywords: ['web server','caddy','https','Caddyfile'] -tags: ["centos","web server"] -license: '[CC BY-ND 4.0](https://creativecommons.org/licenses/by-nd/4.0)' -relations: - platform: - key: install-caddy-server - keywords: - - distribution: CentOS 8 -aliases: ['/web-servers/caddy/how-to-install-and-configure-caddy-on-centos-8/'] ---- - -[Caddy](https://caddyserver.com/) is a fast, open-source, and security-focused web server written in [Go](https://golang.org/). Caddy includes modern features such as support for virtual hosts, minification of static files, and HTTP/2. Caddy is also the first web-server that can obtain and renew SSL/TLS certificates automatically using [Let's Encrypt](https://letsencrypt.org/). - -## Before You Begin - -1. Familiarize yourself with our [Getting Started](/docs/products/platform/get-started/) guide and complete the steps for setting your Linode's [hostname](/docs/products/compute/compute-instances/guides/set-up-and-secure/#configure-a-custom-hostname) and [timezone](/docs/products/compute/compute-instances/guides/set-up-and-secure/#set-the-timezone). - -1. Complete the sections of our [Securing Your Server](/docs/products/compute/compute-instances/guides/set-up-and-secure/) guide to [create a standard user account](/docs/products/compute/compute-instances/guides/set-up-and-secure/#add-a-limited-user-account), and [harden SSH access](/docs/products/compute/compute-instances/guides/set-up-and-secure/#harden-ssh-access). - -1. Register (purchase) your site's domain name and follow our [Manage DNS Records](/docs/products/networking/dns-manager/guides/manage-dns-records/) guide to point the domain to your Linode. - -1. Update your system: - - sudo yum update - -1. Install the SELinux core policy Python utilities. This gives you the ability to manage SELinux settings in a fine-grained way. - - sudo yum install -y policycoreutils-python-utils - -## Install Caddy - -1. Install the `dnf-command(cpor)` plugin and enable `caddy`: - - sudo dnf install 'dnf-command(copr)' - sudo dnf copr enable @caddy/caddy - -1. Install Caddy: - - sudo dnf install caddy - -1. To verify the installation of caddy type: - caddy version - An output similar to the following appears: - - v2.4.3 h1:Y1FaV2N4WO3rBqxSYA8UZsZTQdN+PwcoOcAiZTM8C0I= - -## Allow HTTP and HTTPS Connections - -Caddy serves websites using HTTP and HTTPS protocols, so you need to allow access to the ports 80, and 443. - - sudo firewall-cmd --permanent --zone=public --add-service=http - sudo firewall-cmd --permanent --zone=public --add-service=https - sudo firewall-cmd --reload - -## Add Web Content - -1. Set up a home directory, **web root**, for your website: - - sudo mkdir -p /var/www/html/example.com - -1. Use SELinux’s `chcon` command to change the file security context for web content: - - sudo chcon -t httpd_sys_content_t /var/www/example.com -R - sudo chcon -t httpd_sys_rw_content_t /var/www/example.com -R - -1. Create a test page: - - echo '