<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.fsci.in/index.php?action=history&amp;feed=atom&amp;title=Caddy</id>
	<title>Caddy - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.fsci.in/index.php?action=history&amp;feed=atom&amp;title=Caddy"/>
	<link rel="alternate" type="text/html" href="https://wiki.fsci.in/index.php?title=Caddy&amp;action=history"/>
	<updated>2026-05-05T06:49:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.fsci.in/index.php?title=Caddy&amp;diff=11157&amp;oldid=prev</id>
		<title>Akshay: create page with common use cases</title>
		<link rel="alternate" type="text/html" href="https://wiki.fsci.in/index.php?title=Caddy&amp;diff=11157&amp;oldid=prev"/>
		<updated>2025-10-29T07:15:08Z</updated>

		<summary type="html">&lt;p&gt;create page with common use cases&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Caddy is a server software (like nginx, apache) that has automatic provisioning of https certificates built-in. It is used on several FSCI servers.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
* [https://caddyserver.com/ Quick start] (scroll down on the official homepage for quickstart)&lt;br /&gt;
* [https://caddyserver.com/docs/ Documentation]&lt;br /&gt;
&lt;br /&gt;
== Features ==&lt;br /&gt;
&lt;br /&gt;
* Useful default values (for example, php_fastcgi directive by default redirects requests to index.php, reverse_proxy directive by default sets X-Forwarded-* headers, file_server directive by default enforces canonical URLs, etc)&lt;br /&gt;
* Automatically generates and rotates TLS certificates (using Let&amp;#039;s Encrypt)&lt;br /&gt;
&lt;br /&gt;
== Common configurations ==&lt;br /&gt;
&lt;br /&gt;
=== PHP sites ===&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
 example.com {&lt;br /&gt;
     root /var/www/example.com&lt;br /&gt;
     php_fastcgi unix//var/run/php/php-fpm.sock&lt;br /&gt;
     file_server&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reverse Proxy ===&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
example.com {&lt;br /&gt;
    reverse_proxy localhost:8080&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Simple HTML with logging to file ===&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
example.com {&lt;br /&gt;
    root /var/www/example.com&lt;br /&gt;
    file_server&lt;br /&gt;
    log {&lt;br /&gt;
        output file /var/log/caddy/example.com&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Typical workflow ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# edit the configuration&lt;br /&gt;
sudo -e /etc/caddy/Caddyfile&lt;br /&gt;
&lt;br /&gt;
# ask caddy to reload configuration&lt;br /&gt;
sudo systemctl reload caddy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# check status and logs&lt;br /&gt;
sudo systemctl status caddy&lt;br /&gt;
sudo journalctl -u caddy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
</feed>