I have apache2 on top of k8s, then I add traefik as ingress controller. Then I create ingress resource:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: mysite-ingress
namespace: development
annotations:
kubernetes.io/ingress.class: traefik
ingress.kubernetes.io/content-security-policy: upgrade-insecure-requests
spec:
rules:
- host: mysite.mydomaincom
http:
paths:
- path: /
backend:
serviceName: mysite-svc
servicePort: http
From my host, if i did curl --header 'Host: mysite.mydomain.com' 'http://10.104.210.151'
I can reach my site. But when I access mysite.mydomain.com I got 403, You don't have permission to access /
on this server.
Note:
My goal is running single apache2 with mulitple vhost with traefik as reverse proxy.
Any help?
Thanks