1. Caddy version (caddy version
):
2.1.1
2. How I run Caddy:
a. System environment:
Arch Linux 64 Bit
b. Command:
caddy run
c. My complete Caddyfile or JSON config:
{
auto_https off
}
127.0.0.1:8888 {
reverse_proxy * http://127.0.0.1:5900 {
header_up Host {http.request.host}
header_up X-Real-IP {http.request.remote}
header_up X-Forwarded-For {http.request.remote}
header_up X-Forwarded-Port {http.request.port}
header_up X-Forwarded-Proto {http.request.scheme}
}
}
3. The problem I’m having:
I’m trying to reverse proxy to a VNC server. The VNC server is on port 5900 and everything works fine when I try to connect to it. Now I expect that the exact same thing happens when I connect to :8888 but It is just stuck at CConn: Connected to host 127.0.0.1 port 8888
(I’m using TigerVNC for connecting by the way). When I stop the vncviewer process Caddy shows me this: http: TLS handshake error from 127.0.0.1:59892: EOF
so I think it is stuck in the TLS handshake. But I disabled https, right?
4. Error messages and/or full log output:
I already posted it above… This is the full one.
2020/07/30 21:02:54.786 INFO using adjacent Caddyfile
2020/07/30 21:02:54.787 INFO admin admin endpoint started {"address": "tcp/localhost:2019", "enforce_origin": false, "origins": ["[::1]:2019", "127.0.0.1:2019", "localhost:2019"]}
2020/07/30 21:02:54.787 INFO tls cleaned up storage units
2020/07/30 23:02:54 [INFO][cache:0xc000538d20] Started certificate maintenance routine
2020/07/30 21:02:54.787 INFO autosaved config {"file": "/home/lennard/.config/caddy/autosave.json"}
2020/07/30 21:02:54.788 INFO serving initial configuration
2020/07/30 23:03:03 http: TLS handshake error from 127.0.0.1:59892: EOF
5. What I already tried:
I first tried to do it without the header_up stuff. Didn’t work so I googled a bit. Added it but it still doesn’t work… And now I’m here