• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install Caddy on Ubuntu

{{postValue.id}}

How to install Caddy on Ubuntu

Caddy is an open source HTTP web browser for writers to work on their articles offline. It can also be installed on Linux operating system and also supports HTTPS. This tutorial explains the installation procedure of Caddy on Ubuntu.

Installation procedure

To start the installation procedure of caddy, go to caddyserver official site to download the package according to the distribution used in the target system. Run the below command to download the package for caddy.

root@linuxhelp1:~# wget https://caddyserver.com/download/builds/173003001257928/caddy_linux_amd64_custom.tar.gz
--2017-04-08 16:18:12--  https://caddyserver.com/download/builds/173003001257928/caddy_linux_amd64_custom.tar.gz
Resolving caddyserver.com (caddyserver.com)... 162.243.142.63, 2604:a880:1:20::8c:3001
Connecting to caddyserver.com (caddyserver.com)|162.243.142.63|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4997180 (4.8M) [application/gzip]
Saving to: ‘ caddy_linux_amd64_custom.tar.gz’ 
caddy_linux_amd64_custom.tar.gz             100%[=========================================================================================> ]   4.77M  41.4KB/s    in 2m 12s 
2017-04-08 16:20:25 (37.1 KB/s) - ‘ caddy_linux_amd64_custom.tar.gz’  saved [4997180/4997180]

After downloading the package, create a new directory for caddy and extract the package into it.

root@linuxhelp1:~# mkdir caddy
root@linuxhelp1:~# mv caddy_linux_amd64_custom.tar.gz caddy/
root@linuxhelp1:~# cd caddy/
root@linuxhelp1:~/caddy# ls
caddy_linux_amd64_custom.tar.gz
root@linuxhelp1:~/caddy# tar -xzvf caddy_linux_amd64_custom.tar.gz
README.txt
LICENSES.txt
CHANGES.txt
init/
init/README.md
init/freebsd/
init/freebsd/caddy
init/linux-systemd/
init/linux-systemd/README.md
init/linux-systemd/caddy.service
init/linux-sysvinit/
init/linux-sysvinit/README.md
init/linux-sysvinit/caddy
init/linux-upstart/
init/linux-upstart/README.md
init/linux-upstart/caddy.conf
init/linux-upstart/caddy.conf.centos-6
init/linux-upstart/caddy.conf.ubuntu-12.04
init/mac-launchd/
init/mac-launchd/README.md
init/mac-launchd/com.caddyserver.web.plist
caddy

The extraction is done successfully. Create a default web page content for caddy, so create index.html file as shown below.

root@linuxhelp1:~/caddy# vim index.html

An empty file opens, type any content inside index.html file. Save and exit from the file. Now run the script file called “ caddy” located under caddy’ s directory to start the service.

root@linuxhelp1:~/caddy# ./caddy
Activating privacy features... done.
http://:2015
WARNING: File descriptor limit 1024 is too low for production servers. At least 8192 is recommended. Fix with " ulimit -n 8192" .

Now start the web server. Open the browser and go to the link http://0.0.0.0:2015 to access caddy’ s default web page that contains the content of index.html file.
caddy

Wasn' t that an easy installation procedure? Caddy can also support HTML, Markdown or WordPress Blog.

Tags:
noah
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

Is there any Alternative for caddy web server?

A

Nginx, Apache, Hiawatha are some of the alternatives for caddy web server.

Q

./caddy script got executed successfully? But the web page is not getting accessed in the caddy?

A

The custom port access should be added and enabled in firewall and then access caddy web page.

Q

Does Caddy support WebSocket?

A

yes, the caddy will support WebSocket.

Q

Is Caddy available for windows?

A

yes, Caddy available for windows.

Q

is Caddy available for MAC?

A

yes, Caddy is available for Mac Os.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Isaac ?
How to run windows application in linux

I need to run the windows application in my Linux machine, instead of installing from yum repo or any other repos. How to do that..??

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.