Caddy: Difference between revisions
Cartwatson (talk | contribs) mNo edit summary |
→Check used ports: Replace deprecated netstat with ss |
||
| (One intermediate revision by the same user not shown) | |||
| Line 166: | Line 166: | ||
=== Check used ports === | === Check used ports === | ||
To check if Caddy is running and listening as configured you can run <code> | To check if Caddy is running and listening as configured you can run <code>ss</code>: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
$ | $ sudo ss --listening --no-queues --numeric --processes --tcp --udp | grep 'Process\|caddy' | ||
Netid State Local Address:Port Peer Address:Port Process | |||
tcp LISTEN 127.0.0.1:2019 0.0.0.0:* users:(("caddy",pid=1000,fd=10)) | |||
tcp | tcp LISTEN *:80 *:* users:(("caddy",pid=1000,fd=11)) | ||
tcp LISTEN *:443 *:* users:(("caddy",pid=1000,fd=12)) | |||
udp UNCONN *:443 *:* users:(("caddy",pid=1000,fd=13)) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
The tcp (ipv4) socket port 2019 is Caddy's management endpoint, for when you want manage its config via web REST calls instead of Nix (ignore). | The tcp (ipv4) socket port 2019 is Caddy's management endpoint, for when you want manage its config via web REST calls instead of Nix (ignore). | ||