Caddy running on host in-front of docker

1. The problem I’m having:

Caddy runs on my Windows host as exe file.
I have Docker running and in Docker I have Wordpress from docker hub running.

Wordpress is exposed through port 8082 and I have made a reverse proxy in my caddyfile for it. But when I try to open det site it gives an ERR_SSL_PROTOCOL_ERROR error

2. Error messages and/or full log output:

ERR_SSL_PROTOCOL_ERROR

3. Caddy version:

v2.8.0

4. How I installed and ran Caddy:

a. System environment:

Windows exe file running as serverice.

b. Command:

caddy.exe run

d. My complete Caddy config:

{
	# General Options
	log default {
		output file logs/system.log
		format json
		level debug
	}
	admin :2019

	# TLS Options
	email hostmaster@guldager.one

	# Server Options
	servers {
	}
}

# ----> Hostede sider start <----

guldager.one, www.guldager.one {
	encode gzip
	root * guldager/
	php_fastcgi 127.0.0.1:9000
	file_server {
		index index.php
	}
	log {
		output file logs/guldager.access.log
		format json {
			time_local
		}
	}
}

xn--lovliggr-c5a.nu, www.xn--lovliggr-c5a.nu {
	encode gzip
	root * lovliggor/
	php_fastcgi 127.0.0.1:9000
	file_server
	log {
		output file logs/lovlig.access.log
		format json {
			time_local
		}
	}
}

# ----> Hostede sider slut <----

# ----> Reverse Proxy sider start <----

unifi.guldager.one {
	encode gzip
	reverse_proxy 10.0.0.1
	log {
		output file logs/unifi.access.log
		format json {
			time_local
		}
	}
}

wp.xn--lovliggr-c5a.nu {
	encode gzip
	reverse_proxy 10.0.0.2:8082
	log {
		output file logs/wp-lovlig.access.log
		format json {
			time_local
		}
	}
}

# ----> Reverse Proxy sider slut <----

5. Links to relevant resources:

Show your Caddy logs. When you run caddy run, it emits logs to stderr. You need to collect those and show what you get.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.