Skip to main content

Questions tagged [caddy]

Caddy, sometimes clarified as the Caddy web server, is an open source, HTTP/2-enabled web server written in Go. It uses the Go standard library for its HTTP functionality and supports HTTPS out of the box.

Filter by
Sorted by
Tagged with
6 votes
1 answer
11k views

How to Maintain All Headers Through Reverse Proxy with Caddy

I am using Caddy as a reverse proxy so that I only need to have 2 ports open in my gateway (one for http and one for https). I would prefer to use 80 and 443, but my UniFi USG (Gateway) interferes ...
Lance McCarthy's user avatar
3 votes
2 answers
3k views

Which matcher does Caddy pick when there is a conflict?

Directives in an Caddyfile can have "matchers" that limit them to specific requests. This lets Caddy 2 serve different content for different paths, but what happens when multiple directives ...
William Swanson's user avatar
3 votes
1 answer
7k views

Caddy always tries to bind to port 80, regardless of the address in Caddyfile

Caddy v2.2.1 doesn't seem to respect the port of a given address in this Caddyfile: myfinedomain.com:9999 { respond "Nothing to see here. Srsly." } Starting up caddy simply results in ...
Windowlicker's user avatar
1 vote
2 answers
3k views

Self host gitlab using caddy

I'm trying to install and host gitlab, but it requires and pulls in Nginx. Which would be fine, except I use Caddy and Caddy doesn't play well with Nginx and has to be disabled for Nginx to even start....
unixandria's user avatar
1 vote
2 answers
3k views

Caddy reverse proxy curl works internally, but externally returns content-length: 0

Background and Problem I'm trying to set up Caddy as a reverse proxy between two other web applications and a static file server (all on one machine). When I curl the internal IP, it works as expected,...
claypooj's user avatar
  • 123
1 vote
1 answer
378 views

How to install Caddy on Amazon Linux 2023?

Before upgrading to Amazon Linux 2023, I'd like to make sure I can easily install Caddy. Amazon published a list of available packages, but Caddy is not in it. I also found a package request from 2022 ...
Benoit Blanchon's user avatar
1 vote
0 answers
296 views

using custom domain in caddy gives tls error

I have the following caddy file - localhost { respond "Hello World !" } auth.demo.app.com { respond "Hello auth app" } When I do a sudo caddy reload I get the following ...
murtaza52's user avatar
  • 151
0 votes
1 answer
217 views

ERR_SSL_PROTOCOL_ERROR when trying to tunnel IPv4 https traffic to a caddy server runing on an IPv6-only machine via socat

I have a home server that is only provided a public IPv6 adress. It serves a searxng (dockerized) behind a caddy reverse proxy (also dockerized). Access from the outside if the accessing device has ...
TorbenKorx's user avatar
0 votes
0 answers
29 views

Traefik 2 fallback default router to Caddy

I'm using Traefik 2.11 and I'd like to forward all unmatched traffic to another reverse proxy (namely Caddy). First question, is it possible to define a router with no rule ? (which would get a 0 ...
Pierre de LESPINAY's user avatar
0 votes
0 answers
121 views

How do I get debug logging out of php_fastcgi in a container?

I am running a container built from this Dockerfile. It's running a basic PHP application. In front of it I have Caddy. A lot of people put nginx in front of PHP. I don't and I won't. So if your ...
Paco Hope's user avatar
  • 101
0 votes
0 answers
38 views

Where is the proper place to save the authentication token in SSO scenarios?

Caddy web server has a forward_auth directive, that as the name suggests, can forward any incoming request to an outside source and that outside source can decide on whether to accept the request and ...
wiki's user avatar
  • 513
0 votes
0 answers
411 views

Forwarding requests to another Azure Container App in the same environment results in 403 forbidden

-- Copied from Stackoverflow -- I am trying to setup two containers in an Azure Container App Environment. One Container App has a Caddy reverse-proxy plus SPA app files (app-www) and another has an ...
Brendan's user avatar
  • 153
0 votes
1 answer
266 views

Append prefix to caddy route

I want to achieve the opposite behavior of “uri strip_prefix”: I always want to add a /foo in front of the url. e.g. [domain] → [domain]/foo [domain]/a → [domain]/foo/a I'm using Caddy version 2.
tris's user avatar
  • 123
0 votes
0 answers
149 views

Can I stop Apache2 server with Caddy in docker container

I'm running a container with Caddy. My website is properly working. I can access it. The problem is that whenever I visit any page on my website - I can see apache2 that takes a lot of CPU (in top). ...
Marek's user avatar
  • 101
0 votes
1 answer
232 views

Caddyfile header directive unable to override file_server ETag

Invoking caddy run against the Caddyfile: http://localhost header ETag forcedValue file_server I expect curl -v http://localhost/Caddyfile to show a response with the ETag forcedValue. Instead, a ...
Charles Duffy's user avatar
0 votes
1 answer
888 views

i/o timeout when trying to renew letsencrypt certificate

I am running a webserver using caddy 1, which is supposed to renew https certificates automatically using letsencrypt but is having trouble doing so. In the server's logs I see this: 2022/01/14 04:03:...
Nothingbetter's user avatar
0 votes
0 answers
632 views

Caddy "CSR doesn't contain a SAN short enough to fit in CN"

The Common Name (CN) in a TLS certificate is documented to have a limit of 64 chars. The trick when issuing a cert for a so long subdomain is to set the CN to something else (shorter) and have the ...
Xavi Montero's user avatar
0 votes
2 answers
569 views

Device -> device traffic being blocked inside of network

I am running into a weird issue, which I have been trying to understand and fix for a few hours. I have three main machines, which are setup this way: M1: Raspberry pi 3 (raspbian lite), running ...
ruben1691's user avatar
  • 101
-1 votes
1 answer
850 views

Can't start Mercure Hub on Debian 11 with supervisord, outh of Docker image

I'm trying to exec Mercure hub from supervisor, but is not possible for me. Mercure is in the same machine of webserver with the SSL virtualhost for pami54.local domain. [program:mercure] environment=...
Francisco's user avatar
  • 141
-1 votes
1 answer
777 views

~90% error rate with Stripe webhooks, unpredictable response. Server issue?

I'm setting up Stripe webhooks for the first time. I've made hundreds of test requests and I've had an error rate of around 90%. It's unpredictable as to why the failures occur. The failure responses ...
Joseph's user avatar
  • 1