How To Install Caddy Web Server on CentOS 7

r00t September 4, 2017

Install Caddy Web Server on CentOS 7

In this tutorial we will show you how to install Caddy Web Server on CentOS 7. For those of you who didn’t know, KDE is a well-known desktop environment for the Unix-Like systems designed for users who wants to have a nice desktop environment for their machines, It is one of the most used desktop interfaces out there.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation KDE Plasma desktop environment on a CentOS 7 server.

Caddy Features

  • Automatic HTTPS.
  • Easy Deployment.
  • Multi-core.
  • WebSockets.
  • Rewrites & Redirects.
  • Virtual Hosts.

Install Caddy Web Server on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Caddy web server on CentOS 7.

Install Caddy is quick and easy with run the following command:

After the script finishes, you can run the following command to see where is your Caddy’s binary file:

Your output should be like below:

Step 3. Setting Up Necessary Directories.

Next, create the directories where we will store the Caddy configuration file Caddyfile and SSL certificates:

Step 4. Installing Caddy as a System Service.

We also need to create a new SystemD configuration script:

Add following line:

Set the owner and permissions:

At last, execute the following commands to enable Caddy to run on boot:

Step 5. Creating Test Web Page and a Caddyfile.

For testing purposes, we will create a test HTML file:

Next, add our domain to the Caddy configuration file:

Add following line:

Save the file and exit the editor. To apply the changes, restart Caddy:

Now, with a web browser, just go to https://idroot.net, and you will see our test page!

Congratulation’s! You have successfully installed Caddy. Thanks for using this tutorial for installing Caddy web server in CentOS 7 system. For additional help or useful information, we recommend you to check the official Caddy web server web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!

Save

Share on Google+0Share on Facebook0Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon1Share on Reddit1Pin on Pinterest2

Leave a Comment