# Call back: 404 error page not found

**URL:** <https://community.traefik.io/t/call-back-404-error-page-not-found/19568>\
**Category:** Traefik v2\
**Tags:** tcp\
**Created:** [August 20, 2023, 9:57pm UTC](https://community.traefik.io/t/call-back-404-error-page-not-found/19568 "2023-08-20T21:57:08Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [October 7, 2023, 1:08pm UTC](https://community.traefik.io/t/call-back-404-error-page-not-found/19568/21 "2023-10-07T13:08:25Z")

</div>

Your config looks wrong. Maybe you start again what you want to achieve.

What URL should the client call, what URL should Traefik forward the request to?

By the way, there is no "redirect". Traefik will forward or proxy a request, a redirect is telling the client to fetch a different address itself.

The `router` rule needs to match your request. Then the `service` is used to forward the request.

Your middleware looks wrong, where do you get those values from? Why do you have the same target URL in service twice?

---

<div class="post-metadata">

**Author:** ![frankenzy](https://avatars.discourse-cdn.com/v4/letter/f/73ab20/32.png) [@frankenzy](https://community.traefik.io/u/frankenzy)\
**Post date:** [October 7, 2023, 5:47pm UTC](https://community.traefik.io/t/call-back-404-error-page-not-found/19568/22 "2023-10-07T17:47:39Z")

</div>

I've been working on this for months, I don't really understand what to do anymore.

in my service I want to put a proxy system which allows me to expose our applications on the internet, but also to communicate with other urls without going through VPN, basically here is the objective.

my server where traefik is installed is: 10.104.145.203  
the associated public URL is [http://digihub.vithub.ci](http://digihub.vithub.ci).  
I then want to associate this public address with my internal service like:  
10.104.145.218 (this is a web service deployed by me)  
then there is the  
"[https://jsonplaceholder.typicode.com/comments](https://jsonplaceholder.typicode.com/comments)" (he is deployed by a partner, we use VPN but I want to be able to reach it through traefik and drop the VPN)

so on so that if tomorrow I have another partner with another service, I can give him a public address and associate him with my internal service without using a VPN.  
The second essential point is security.  
once the communication has passed how to put security in place.

This is basically what I want to achieve

---

<div class="post-metadata">

**Author:** ![frankenzy](https://avatars.discourse-cdn.com/v4/letter/f/73ab20/32.png) [@frankenzy](https://community.traefik.io/u/frankenzy)\
**Post date:** [October 7, 2023, 5:55pm UTC](https://community.traefik.io/t/call-back-404-error-page-not-found/19568/23 "2023-10-07T17:55:21Z")

</div>

```auto
I downloaded and installed traefik on a linux machine
here is the basic configuration:

the other configuration that I shared yesterday was as an example, here is actually what I did:
*********************************************
config.toml
*******************************************
[accesslog]

[api]
    insecure = true
    dashboard = true
    debug = true
[global]
  # Send anonymous usage data
  sendAnonymousUsage = true
  
[log]
    level = "INFO"

[entryPoints]
   
    [entryPoints.nsia]
        address = ":80"
    [entryPoints.nsia.http]
    [entryPoints.nsia.http.redirections]
    [entryPoints.nsia.http.redirections.entryPoint]
        to = "websecure"
        scheme = "https"
        permanent = true
        priority = 10

    [entryPoints.websecure]
    address = ":443"

[providers.file]
    directory = "/home/frankenzy/traefik/services/"
    watch = true

*********************************************
folder services/traefik.toml
*******************************************
[http]
    [http.routers]
        [http.routers.traefik]
            entryPoints = ["nsia"]
            rule = "Host(`10.104.145.203`)"
            middlewares = ["api-forwarding"]
            service = "traefik"

    [http.middlewares]
        [http.middlewares.api-forwarding.headers.customRequestHeaders]
            X-Forwarded-Proto = "https"
            X-Forwarded-Port = "443"
            X-Forwarded-Uri = "/entries"

    [http.services]
        [http.services.traefik]
            [http.services.traefik.loadBalancer]
                [[http.services.traefik.loadBalancer.servers]]
                    url = "10.104.145.218"
                [[http.services.traefik.loadBalancer.servers]]
                    url = "https://jsonplaceholder.typicode.com/comments"

```

---

<div class="post-metadata">

**Author:** ![frankenzy](https://avatars.discourse-cdn.com/v4/letter/f/73ab20/32.png) [@frankenzy](https://community.traefik.io/u/frankenzy)\
**Post date:** [October 7, 2023, 5:57pm UTC](https://community.traefik.io/t/call-back-404-error-page-not-found/19568/24 "2023-10-07T17:57:04Z")

</div>

I need help and also sorry,

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [October 7, 2023, 7:04pm UTC](https://community.traefik.io/t/call-back-404-error-page-not-found/19568/25 "2023-10-07T19:04:48Z")

</div>

You seem to do erratic changes to your strange configuration. How about you read through the Traefik docs to understand how it works?

`Router rule` is the domain or IP you access Traefik with. When Traefik sees a http request matching `rule`, then it will apply `middleware` and then forward to `service`.

Are the settings in middleware the http headers that your target service requires?

Why would you forward your request round-robin to two different target server URLs?

---

<div class="post-metadata">

**Author:** ![frankenzy](https://avatars.discourse-cdn.com/v4/letter/f/73ab20/32.png) [@frankenzy](https://community.traefik.io/u/frankenzy)\
**Post date:** [October 8, 2023, 3:59am UTC](https://community.traefik.io/t/call-back-404-error-page-not-found/19568/26 "2023-10-08T03:59:33Z")

</div>

you can help me with the basic configuration, tell me what information you need. This will be my basic configuration that I can adapt to our architecture. I really need it because my job is threatened.  
as explained, we want to set up a proxy system to no longer have to use VPNs and then expose our services on the web with partners. We work in a closed intranet environment. so our objective is that from now on if a partner tells us that it has a service available on the web we will not need a VPN but configure traefik in order to allow our employees to access this url through traefik. the same if we want to offer a service to a partner, we just need to configure a service in traefik and give them a public address that they can access via the web

---

<div class="post-metadata">

**Author:** ![frankenzy](https://avatars.discourse-cdn.com/v4/letter/f/73ab20/32.png) [@frankenzy](https://community.traefik.io/u/frankenzy)\
**Post date:** [October 9, 2023, 9:29am UTC](https://community.traefik.io/t/call-back-404-error-page-not-found/19568/27 "2023-10-09T09:29:43Z")

</div>

Hello, I would like to thank you because I successfully configured traefik and the reridrecton works very well.

Thank you for your assistance and patience.

[Previous page](https://community.traefik.io/t/call-back-404-error-page-not-found/19568.md?page=1)
