Traefik version : 2.2
System : Debian
Type of configuration : File ( i’m not using docker)
Hello.I want to use traefik to configure a proxy for my apache2 service
This is my apache2 vhost file :
<VirtualHost *:8083>
ServerAdmin admin@traefik.lan
ServerName home.traefik.lan
DocumentRoot /var/www/html/webapp
ErrorLog /var/log/apache2/ssoweb_error.log
TransferLog /var/log/apache2/ssoweb_access.log
Alias /ssowebapp /var/www/html/webapp
<Directory /var/www/html/webapp>
Options FollowSymLinks Indexes
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
My service is available on the URL http://home.traefik.lan: 8083
Now i have created http service with traefik. This is my conf file traefik.toml :
[global]
checkNewVersion = true
sendAnonymousUsage = true
[entryPoints]
[entryPoints.http]
address = ":80"
[http.routers]
[http.routers.router0]
rule = "Host(`home.traefik.lan`)"
entryPoints = ["http"]
service = "whoami"
[http.services]
[http.services.whoami]
[http.services.whoami.loadBalancer]
[[http.services.whoami.loadBalancer.servers]]
url = "http://127.0.0.1:8083/"
[log]
level = "DEBUG"
filePath = "/etc/traefik/traefik.log"
format = "json"
[api]
insecure = true
dashboard = true
The dashboard page of traefik doesn’t show my service (whaoami). When i access home.traefik.lan in the browser. Have error : 404 page not found. There is no error in the logs file (traefik.log, access.log). Can someone tells me what i’m doing wrong ?