We have plenty of https -> http configurations operational but have been unabled to forward one HTTPS endpoint to a HTTPS backend service.
I read most of the relavant posts on this forum which all boil down to setting insecureSkipVerify
to true
however, that doesn't work for us, we're getting a stuborn 404 page not found
which actually seems to come from the backend service itself.
Any idea's how to resolve this ?
We'd like to set up the backend service with a self-signed certificate.
Static configuration
api:
dashboard: true
insecure: true
debug: true
entryPoints:
web:
address: ":80"
http:
redirections:
entryPoint:
to: websecure
scheme: https
permanent: true
websecure:
address: ":443"
providers:
file:
directory: "/etc/traefik/dynamic-config"
watch: true
serversTransport:
insecureSkipVerify: true
dynamic configuration - tls (works for the other endpoint - so must be correct)
tls:
certificates:
- certFile: /etc/traefik/bruyland.crt
keyFile: /etc/traefik/bruyland.key
Dynamic config for this specific endpoint
http:
routers:
test-router:
rule: "Host(`rp-test2.bruyland.be`) || Host(`rp-test2`)"
entryPoints:
- websecure
service: test-service
tls: {}
services:
test-service:
loadBalancer:
servers:
- url: "https://uitpak2.bruyland.be/"
# - url: "https://www.google.com/"
This is what I get in the access logging
192.168.2.47 - - [19/Jan/2023:09:44:52 +0000] "GET /api HTTP/2.0" 404 19 "-" "-" 462 "test-router@file" "https://uitpak2.bruyland.be/" 1ms
192.168.2.47 - - [19/Jan/2023:09:44:52 +0000] "GET /api HTTP/2.0" 404 19 "-" "-" 463 "test-router@file" "https://uitpak2.bruyland.be/" 1ms
192.168.2.47 - - [19/Jan/2023:09:44:52 +0000] "GET /api HTTP/2.0" 404 19 "-" "-" 464 "test-router@file" "https://uitpak2.bruyland.be/" 1ms
192.168.2.47 - - [19/Jan/2023:09:44:53 +0000] "GET /api HTTP/2.0" 404 19 "-" "-" 465 "test-router@file" "https://uitpak2.bruyland.be/" 1ms
192.168.2.47 - - [19/Jan/2023:09:44:53 +0000] "GET /api HTTP/2.0" 404 19 "-" "-" 466 "test-router@file" "https://uitpak2.bruyland.be/" 1ms
When I replace the backend service with the google page, I get a 404 repoly from google.