Wrong domain redirection

Hello,
I’m facing a problem configuring the gateway, it appears my call are not proxyed to the right domain
I’m trying to do the following redirection:

from
https://www.tykDomain.com/listenPath/rest-of-the-url
to
https://www.myCustomDomain/customPath/rest-of-the-url

When I look at my http log, all my calls end-up in
https://www.tykDomain.com/my-custom-path/some-more-path”,
So my listen path is stripped and my custom path is applied, but the domain doesn’t change

here is what my api json look like
“proxy”: {
“preserve_host_header”: true,
“listen_path”: “/listenPath/”,
“target_url”: “https://www.myCustomDomain/customPath/”,
“strip_listen_path”: true
}

Has anyone ever had the same problem ?
I saw there was a “domain” attribute in the api definition, but the tutorial doesn’t mention it so I don’t think it’s mandatory ?
If anyone can give me a quick rundown on the proxying that’s done in tyk, it would be greatly appreciated :slight_smile:

Thank you, and have a great day !

found it !
I “preserve_host_header” should be set to false.
guess I didn’t read the doc enough