caddy-installer.sh/srv/www/index.html

64 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Welcome to Caddy!</title>
</head>
<body>
<h1>Welcome to Caddy!</h1>
<p>Here's some info to help you know what to do next</p>
<h2>Where do my sites go?</h2>
<p>
Your sites are in <kbd>/srv/www</kbd>. In fact, this page is served from <kbd>/srv/www/localhost/index.html</kbd>
</p>
<p>
If you have a site, say example.com, you can put it in <kbd>/srv/www/example.com</kbd> and then edit the Caddyfile
to reflect the change:
</p>
<pre><code>https://example.com {
tls john@email.com
root /srv/www/example.com
}
https://www.example.com {
redir https://example.com
}
</code></pre>
<h2>What was installed to where?</h2>
<pre><code>/usr/local/bin/caddy
/etc/caddy/Caddyfile
/etc/ssl/caddy/
/etc/ssl/caddy/acme/
/etc/ssl/caddy/ocsp/
/etc/systemd/system/caddy.service
/etc/tmpfiles.d/caddy.conf
/srv/www/localhost/index.html
/var/log/caddy/
/Library/LaunchDaemons/com.caddyserver.web.plist
</code></pre>
<h2>How do I start / stop / reload / see logs for Caddy?</h2>
<table>
<tr>
<th>Windows</th>
<td>Mac</td>
<td>Linux</td>
</tr>
<tr>
<td>The world may never know...</td>
<td><pre><code>launchctl unload com.caddyserver.web
launchctl load -w com.caddyserver.web
launchctl list | grep caddy
launchctl remove grep caddy
</code></pre></td>
<td><pre><code>systemctl status caddy
systemctl enable caddy
systemctl start caddy
systemctl stop caddy
journalctl --boot -u caddy.service
</code></pre></td>
</tr>
</table>
</body>
</html>