# Traefik doesn't redirect to the service url

**URL:** <https://community.traefik.io/t/traefik-doesnt-redirect-to-the-service-url/5480>\
**Category:** Traefik v2\
**Tags:** file\
**Created:** [April 14, 2020, 12:11pm UTC](https://community.traefik.io/t/traefik-doesnt-redirect-to-the-service-url/5480 "2020-04-14T12:11:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![devwinner](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@devwinner](https://community.traefik.io/u/devwinner)\
**Post date:** [April 14, 2020, 12:11pm UTC](https://community.traefik.io/t/traefik-doesnt-redirect-to-the-service-url/5480/1 "2020-04-14T12:11:18Z")

</div>

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 :

```auto
<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](http://home.traefik.lan): 8083

Now i have created http service with traefik. This is my conf file traefik.toml :

```auto
[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 ?

---

<div class="post-metadata">

**Author:** ![ldez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ldez/32/5_2.png) [@ldez](https://community.traefik.io/u/ldez)\
**Post date:** [April 14, 2020, 6:04pm UTC](https://community.traefik.io/t/traefik-doesnt-redirect-to-the-service-url/5480/2 "2020-04-14T18:04:12Z")

</div>

Hello

In traefik v2, the [dynamic configuration](https://docs.traefik.io/v2.2/getting-started/configuration-overview/#the-dynamic-configuration) and the [static configuration](https://docs.traefik.io/v2.2/getting-started/configuration-overview/#the-static-configuration) must be defined in separated files:

- [https://docs.traefik.io/v2.2/getting-started/configuration-overview/#the-dynamic-configuration](https://docs.traefik.io/v2.2/getting-started/configuration-overview/#the-dynamic-configuration)
- [https://docs.traefik.io/v2.2/getting-started/configuration-overview/#the-static-configuration](https://docs.traefik.io/v2.2/getting-started/configuration-overview/#the-static-configuration)
