Questions tagged [caddy]

Caddy is a configurable web server written in Go that supports modern features such as HTTP/2, IPv6, Markdown, WebSockets, FastCGI, templates and more, right out of the box.

Caddy is a configurable web server created by Matt Holt. It's written in and available for Windows, Mac, Linux, and BSD.

Caddy became famous, among other things, for being the first web server to support automatic provisioning of SSL certificates via Let's Encrypt.

It also supports modern features such as HTTP/2, IPv6, Markdown, WebSockets, FastCGI, templates and more, right out of the box.

Caddy is highly configurable using a configuration file called Caddyfile.

338 questions
0
votes
1 answer

Caddy Server error: "Caddyfile:12 - Error during parsing: Unknown directive 'CLOUDFLARE_API_KEY'"

New to using Caddy server and fighting with the Caddyfile... This is the current Caddyfile that I have; when I type "caddy" from the command line, from within the same folder, I get the following error: Caddyfile:12 - Error during parsing: Unknown…
J. Scott Elblein
  • 4,013
  • 15
  • 58
  • 94
0
votes
1 answer

Caddy Server error: "Error during parsing: Unknown directive 'if'"

New to using Caddy server and fighting with the Caddyfile... This is the current Caddyfile that I have; when I type "caddy" from the command line, from within the same folder, I get the following error: Caddyfile:3 - Error during parsing: Unknown…
J. Scott Elblein
  • 4,013
  • 15
  • 58
  • 94
0
votes
1 answer

Caddy serves wrong SSL cert

The problem is described in this issue: https://github.com/mholt/caddy/issues/1303 I want to fix this information leakage (giving an attacker the opportunity to enumerate all the different hosts served on my webserver). Does somebody know how to fix…
Olaf
  • 1
0
votes
1 answer

How to serve both http and https with Caddy?

How should I configure Caddy to serve both http and https instead of redirecting by default to https? http://example.com/info https://example.com/info Background: We have a Windows program that connects to one of our domains to retrieve information…
equalium
  • 1,241
  • 2
  • 12
  • 18
0
votes
1 answer

domain with www does not work for Caddy server

I'm using Caddy as a reverse proxy server that points to a docker container that runs web service at port 8181. The domain abc.com works, but www.abc.com does not work. I wonder where might be wrong: Caddyfile: abc.com { proxy /…
TonyW
  • 18,375
  • 42
  • 110
  • 183
0
votes
1 answer

Woocommerce checkout "Unexpected token" with pretty links

I have a Wordpress e-commerce (With Woocommerce) running on my VPS (With Caddy -> NGinx) Before i had index.php in my uri so i added in my config file theses lines to rewrite uri and be able to activate pretty links. Perfect, it works ! Now i have…
ebillis
  • 224
  • 1
  • 4
  • 19
0
votes
0 answers

Website Latency Oscillates With a Period Of 3 Minutes Between 40 -> 200 ms

I host a static web page with Caddy Server on Google's managed Kubernetes service. I monitor this site with Google Stackdriver. I deploy my code via a Helm chart. See the source code here (permalink). I have noticed that the latency will…
Noah Huppert
  • 4,028
  • 6
  • 36
  • 58
0
votes
0 answers

Caddy throws duplicate site address with production.yml django cookie cutter

I'm using Django cookie cutter docker project trying to host on digital ocean. I tried to bring it up, It worked fine once, but later I made some changes to django code and had to restart it. So I stopped all the thins and fired up command again…
venkateswar
  • 145
  • 1
  • 8
0
votes
1 answer

Caddy server with proxy to hugo server failing to load CSS

I'm running a caddy server on a linode instance with debian installed. I'm using the caddy server to proxy to a hugo server. The hugo server works locally, but does not through the caddy server. It will load the content, but style.min.css and the…
Busch
  • 857
  • 10
  • 29
0
votes
1 answer

Caddyfile Subdomain with Multiple Proxies

i am new to using caddy and i am trying to figure out how to create a subdomain that can proxy to different endpoints based on path. for example for a subdomain called pets in the domain my-website.com. i want to route the path /cats to serviceA and…
X0r0N
  • 1,816
  • 6
  • 29
  • 50
0
votes
1 answer

caddy use placeholder error

i want to write one config for multiple sites. these sites domain will like : x.localhost, y.localhost but occur some errors. this is error message: caddy_1 | 18/Jan/2018:09:33:43 +0000 [ERROR 0 /index.php] Primary script…
Xiu Hong
  • 181
  • 2
  • 8
0
votes
1 answer

Running cookiecutter django on an intranet

Now that Caddy has been adopted which comes by default setup for https and requires the domain name to be routable from the internet. What is the proper setup to run on an intranet with only http without access from the internet?
jangeador
  • 594
  • 1
  • 6
  • 17
0
votes
1 answer

Rails: Assets cannot be found in production mode, although being served properly by caddy

I have been trying to fix this problem for almost days now. I am trying to run my ruby on rails site in production mode, but (some of) the assets cannot be served. The images are located in a custom subfolder ( app/assets/audio/testfolder/demo.png )…
Kafkalasch
  • 45
  • 7
0
votes
2 answers

traefik + caddy > Gateway Timeout

I try to use caddy server with traefik in a simple container. Unfortunatly i get a Gateway Timeout error when i visite the domain. I can't understand if the error is due to traefik or my container. My docker-compose file: version: '2' # # [ server…
jbo
  • 129
  • 3
  • 14
0
votes
0 answers

Caddy Server, http.fastcgi 502 Error

My Caddy File http://bot.vibs.tech { root /home/caddy/www/botsite tls off errors { 404 /home/caddy/www/botsite/404.html } fastcgi / 127.0.0.1:9001 php { ext .php split .php index index.php } } The Webpage…
Joel
  • 37
  • 6