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
5 votes
1 answer
10k 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
2k 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
2k 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
135 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
278 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
0 answers
53 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
11 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
  • 503
0 votes
0 answers
256 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
173 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
105 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
200 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
0 answers
236 views

kubernetes responding with 502

I have a cluster running 2 deployments and an ingress (caddy). One of my deployments is working fine, its a golang image listening on 80. The other deployment is a php-fpm image listening on 9000, ...
wcb's user avatar
  • 1
0 votes
1 answer
818 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
628 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
522 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
795 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
732 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