1. Caddy version (caddy version
):
v2.4.6 h1:HGkGICFGvyrodcqOOclHKfvJC0qTU7vny/7FhYp9hNw=
2. How I run Caddy:
Ubuntu service daemon
a. System environment:
Ubunt 20.04
b. Command:
c. Service/unit/compose file:
d. My complete Caddyfile or JSON config:
{
email admin@tld.biz
http_port 80
https_port 443
admin localhost:2019
log
storage file_system {
root /etc/caddy
}
}
(default) {
}
(tls) {
transport http {
tls
tls_insecure_skip_verify
}
}
(acl) {
@acl {
remote_ip 192.168.76.0/24
remote_ip 192.168.77.0/24
}
}
*.tld.biz {
tls {
dns ionos 1.2
resolvers 1.1.1.1
}
@archiv host archiv.tld.biz
handle @archiv {
import default
reverse_proxy 192.168.76.204:8462 {
import tls
}
}
@nextcloud host nextcloud.tld.biz
handle @nextcloud {
import default
reverse_proxy 192.168.76.232 {
header_up Host {http.reverse_proxy.upstream.hostport}
header_up X-Forwarded-Host {host}
}
}
@iss host iis.tld.biz
handle @iss {
import default
reverse_proxy 192.168.76.200
}
@pf host pf.tld.biz
handle @pf {
import default
reverse_proxy 192.168.76.201
}
@post host post.tld.biz
handle @post {
import default
reverse_proxy 192.168.76.204
}
@cloud host cloud.tld.biz
handle @cloud {
reverse_proxy http://192.168.76.207:8080
}
@ilo host ilo.tld.biz
handle @ilo {
reverse_proxy 192.168.76.198
}
@proxmox host proxmox.tld.biz
handle @proxmox {
reverse_proxy 192.168.76.230 {
import tls
}
}
@bitwarden host bitwarden.tld.biz
handle @bitwarden {
reverse_proxy 192.168.76.233
}
@dasi host dasi.tld.biz
handle @dasi {
reverse_proxy 192.168.76.203
}
}
3. The problem I’m having:
Thansk to the help of this Forum i was abel to set up Wildcard Certs and Reverse proxy to some of my Upstreams.
For example the Cloud and Archiv service work well, at least i i use Firefox and not the Archivs Outlook Plugin but thats a topic for another time.
However some upstreams only return empty pages:
The dasi points to an Buffalo NAS that services only http
4. Error messages and/or full log output:
CUrl -V to dasi:
curl -v 192.168.76.203
* Trying 192.168.76.203:80...
* TCP_NODELAY set
* Connected to 192.168.76.203 (192.168.76.203) port 80 (#0)
> GET / HTTP/1.1
> Host: 192.168.76.203
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Vary: Accept-Encoding
< Content-Type: text/html
< Accept-Ranges: bytes
< ETag: "3594469493"
< Last-Modified: Thu, 03 Dec 2020 14:57:46 GMT
< Content-Length: 1326
< Date: Wed, 01 Dec 2021 09:44:29 GMT
< Server: lighttpd/1.4.39
<
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/base.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="X-UA-Compatible" content="IE=8;IE=9" />
<meta http-equiv="imagetoolbar" content="no" />
<!-- InstanceBeginEditable name="title" -->
<title>BUFFALO</title>
<!-- InstanceEndEditable -->
<meta name="copyright" content="Copyright (c) 2011 BUFFALO Inc. All rights reserved." />
<!-- CSS:Ext -->
<link rel="stylesheet" type="text/css" href="js/ext/resources/css/ext-all-gray.min.css?_dc=1607007439" />
<script type="text/javascript" src="gruntjs/bootstrap.js?_dc=1607007439"></script>
<script type="text/javascript" src="gruntjs/ext-lang-ja.js?_dc=1607007439"></script>
<script type="text/javascript" src="gruntjs/webui.js?_dc=1607007439"></script>
<script type="text/javascript" src="gruntjs/switch.js?_dc=1607007439"></script>
</head>
<body>
<noscript>
<img src="./img/top/enable-javascript.png" />
</noscript>
</body>
</html>
* Connection #0 to host 192.168.76.203 left intact
5. What I already tried:
Played around with headers but dont know where a good starting point would be