1. Caddy version (caddy version
):
v2.2.0-rc.1
2. How I run Caddy:
a. System environment:
CentOS SELinux 8 x64
b. Command:
caddy start;
caddy reload;
c. Service/unit/compose file:
N/A
d. My complete Caddyfile or JSON config:
tableau.soeller.dev {
route / {
respond "Hello, world!"
}
route /tableau/* {
uri * strip_prefix /tableau
reverse_proxy * http://217.79.180.190:8080 {
header_up REMOTE_ADDR {http.request.host}
header_up X-Forwarded-For {http.request.remote_host}
header_up Host {http.request.host}
header_up X-Forwarded-Host {http.request.remote_host}
header_up X-Forwarded-Proto {http.request.scheme}
}
}
log {
output file /root/caddy2.log {
roll_local_time true
}
format json
}
}
3. The problem I’m having:
I’m trying to put tableau server behind route on my domain. When doing it the way I did it in my Caddyfile and direct to tableau.my_domain/tableau
I only receive a white screen with a 200 response. What I want to receive is the signing page for tableau.
My problem is that I do not know how exactly I have to set up the additional header that tableau requires.
link further down
4. Error messages and/or full log output:
{
"level": "info",
"ts": 1613061634.4891918,
"logger": "http.log.access.log0",
"msg": "handled request",
"request": {
"remote_addr": "82.102.16.198:62324",
"proto": "HTTP/2.0",
"method": "GET",
"host": "tableau.soeller.dev",
"uri": "/tableau",
"headers": {
"Cookie": [
"workgroup_session_id=null"
],
"Accept": [
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
],
"User-Agent": [
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15"
],
"Accept-Language": [
"en-us"
],
"Accept-Encoding": [
"gzip, deflate, br"
]
},
"tls": {
"resumed": false,
"version": 772,
"cipher_suite": 4865,
"proto": "h2",
"proto_mutual": true,
"server_name": "tableau.soeller.dev"
}
},
"common_log": "82.102.16.198 - - [11/Feb/2021:16:40:34 +0000] \"GET /tableau HTTP/2.0\" 0 0",
"duration": 0.00002172,
"size": 0,
"status": 0,
"resp_headers": {
"Server": [
"Caddy"
]
}
}
5. What I already tried:
What I tried is putting Tableau on the root route instead behind a path and that does work.
Here is the log to that Tableau on / · GitHub
So I know that in practice it does work.