# Changing test webhook url

**URL:** <https://community.n8n.io/t/changing-test-webhook-url/236828>\
**Category:** Questions\
**Created:** [December 16, 2025, 1:41pm UTC](https://community.n8n.io/t/changing-test-webhook-url/236828 "2025-12-16T13:41:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mehran.eftekhari](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mehran.eftekhari](https://community.n8n.io/u/mehran.eftekhari)\
**Post date:** [December 16, 2025, 1:41pm UTC](https://community.n8n.io/t/changing-test-webhook-url/236828/1 "2025-12-16T13:41:24Z")

</div>

## Describe the problem/error/question

I want to change the url for testing webhooks. It seems like N8N\_WEBHOOK and N8N\_HOST is only affecting the production webhook url. I looked into env var reference and also source code and couldn’t find anything to change the domain for testing webhooks.

## Information on your n8n setup

- **n8n version:** 1.123.4
- **Database (default: SQLite): postgresql**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):** queue
- **Running n8n via (Docker, npm, n8n cloud, desktop app): k8s**
- **Operating system: EKS** v1.33

---

<div class="post-metadata">

**Author:** ![salmansolutions](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/salmansolutions/32/144083_2.png) [@salmansolutions](https://community.n8n.io/u/salmansolutions)\
**Post date:** [December 16, 2025, 5:23pm UTC](https://community.n8n.io/t/changing-test-webhook-url/236828/2 "2025-12-16T17:23:09Z")

</div>

It is not officially documented, but was mentioned by a n8n member here before:

> [@How to change /webhook url to /api (webhook-test to api-test) - self hosted](http://community.n8n.io/t/how-to-change-webhook-url-to-api-webhook-test-to-api-test-self-hosted/42110/2):
>
> hello @gordonlotter use the [ENV](https://docs.n8n.io/hosting/configuration/environment-variables/#endpoints) vars for that: N8N\_ENDPOINT\_WEBHOOK N8N\_ENDPOINT\_WEBHOOK\_TEST

---

<div class="post-metadata">

**Author:** ![mehran.eftekhari](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mehran.eftekhari](https://community.n8n.io/u/mehran.eftekhari)\
**Post date:** [December 17, 2025, 10:10am UTC](https://community.n8n.io/t/changing-test-webhook-url/236828/3 "2025-12-17T10:10:23Z")

</div>

This is for the path. I mean the domain.

---

<div class="post-metadata">

**Author:** ![salmansolutions](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/salmansolutions/32/144083_2.png) [@salmansolutions](https://community.n8n.io/u/salmansolutions)\
**Post date:** [December 17, 2025, 11:19am UTC](https://community.n8n.io/t/changing-test-webhook-url/236828/4 "2025-12-17T11:19:03Z")

</div>

Have you set WEBHOOK\_URL ?  
This should change the URL for test and production.  
However, you cannot have two different domains set for production and test. but only two different endpoints with the already mentioned env variables.

> **[Configure webhook URLs with reverse proxy | n8n Docs](https://docs.n8n.io/hosting/configuration/configuration-examples/webhook-url/)**
>
> Customize n8n webhook URLs for compatibility with reverse proxy setups.

---

<div class="post-metadata">

**Author:** ![mehran.eftekhari](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mehran.eftekhari](https://community.n8n.io/u/mehran.eftekhari)\
**Post date:** [December 17, 2025, 12:25pm UTC](https://community.n8n.io/t/changing-test-webhook-url/236828/5 "2025-12-17T12:25:33Z")

</div>

I have set WEBHOOK\_URL but it only affects the production URL, test domain is not changed. I don’t want different domains but I want the test to use the same domain as production.

---

<div class="post-metadata">

**Author:** ![salmansolutions](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/salmansolutions/32/144083_2.png) [@salmansolutions](https://community.n8n.io/u/salmansolutions)\
**Post date:** [December 17, 2025, 2:06pm UTC](https://community.n8n.io/t/changing-test-webhook-url/236828/6 "2025-12-17T14:06:17Z")

</div>

WEBHOOK\_URL does change the URL for test webhooks too.  
Also, there is no know issue with version 1.123.4 regarding this env var.  
Please share your setup configuration (docker compose or similar).

Also, consider updating to version 1.123.6 or 1.123.7 and see if the issue persists.

---

<div class="post-metadata">

**Author:** ![mehran.eftekhari](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mehran.eftekhari](https://community.n8n.io/u/mehran.eftekhari)\
**Post date:** [December 18, 2025, 11:49am UTC](https://community.n8n.io/t/changing-test-webhook-url/236828/7 "2025-12-18T11:49:59Z")

</div>

No it seems to be following N8N\_EDITOR\_BASE\_URL. I can’t share my config but these two variables are both set (to different domains) since the webhook is available on the internet and the UI is internal.

Setting N8N\_HOST also doens’t make a difference.

I will try to replicate this locally, so I can share the config here, but i’m not sure I have the time.

Anyways, I’m sure of the variable being set, I just checked with printenv command inside the pod.

---

<div class="post-metadata">

**Author:** ![s1ddh9rth](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/s1ddh9rth/32/59280_2.png) [@s1ddh9rth](https://community.n8n.io/u/s1ddh9rth)\
**Post date:** [December 31, 2025, 7:18am UTC](https://community.n8n.io/t/changing-test-webhook-url/236828/8 "2025-12-31T07:18:20Z")

</div>

Yeah, I am having the same issue. The production webhook URL changes (created another published route in the same tunnel configurations to have a publicly accessible domain), but the test URL remains the same (the one that is not public - is behind a Cloudflare zero trust access policy).

I tried different versions, but it won’t budge.

---

<div class="post-metadata">

**Author:** ![gsmalleus](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/gsmalleus/32/161720_2.png) [@gsmalleus](https://community.n8n.io/u/gsmalleus)\
**Post date:** [February 25, 2026, 7:20pm UTC](https://community.n8n.io/t/changing-test-webhook-url/236828/9 "2026-02-25T19:20:52Z")

</div>

I too am experiencing this behavior where the base domain is different between test and prod webhooks.

When creating webhooks, the test ones look like:

```auto
https://n8n.mydomain.com/webhook-test/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

```

While the prod ones look like:

```auto
https://n8n-webhooks.mydomain.com/webhook/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

```

```auto
services:
  n8n:
    image: docker.n8n.io/n8nio/n8n
    container_name: n8n
    restart: always
    ports:
      - "5678:5678"
    environment:
      - N8N_HOST=localhost
      - N8N_PORT=5678
      - N8N_PROTOCOL=http
      - NODE_ENV=production
      - N8N_EDITOR_BASE_URL=https://n8n.mydomain.com/
      - WEBHOOK_URL=https://n8n-webhooks.mydomain.com/
      - N8N_PROXY_HOPS=1
      - N8N_EMAIL_MODE=smtp
      - N8N_SMTP_HOST=smtp.mydomain.com
      - N8N_SMTP_PORT=25
      - N8N_SMTP_SENDER=n8n@mydomain.com
      - N8N_SMTP_SSL=false
    volumes:
      - ./n8n_data:/home/node/.n8n

```

---

<div class="post-metadata">

**Author:** ![John\_Stephenson](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/john_stephenson/32/169369_2.png) [@John\_Stephenson](https://community.n8n.io/u/John_Stephenson)\
**Post date:** [April 13, 2026, 3:49am UTC](https://community.n8n.io/t/changing-test-webhook-url/236828/10 "2026-04-13T03:49:51Z")

</div>

I’m facing this same issue. I have a main URL that will be private and secured through a cloudflare tunnel, but I want to be able to access webhooks publicly so apps can call it. The only way I can seem to fix it is by setting the base url to the hooks too, but this then messes up with the credentials oauth call back.

So is there a way to set the test url to be the same as the prod webhook url - or set them independently?

---

<div class="post-metadata">

**Author:** ![kjooleng](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/kjooleng/32/184045_2.png) [@kjooleng](https://community.n8n.io/u/kjooleng)\
**Post date:** [April 13, 2026, 3:57am UTC](https://community.n8n.io/t/changing-test-webhook-url/236828/11 "2026-04-13T03:57:41Z")

</div>

> [@John\_Stephenson](#):
>
> but this then messes up with the credentials oauth call back.

I believe you can setup multiple redirect URIs

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/5/4/54543576f3d11f709d6d81e4ae9cc5e9becd472f.png)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [July 12, 2026, 3:58am UTC](https://community.n8n.io/t/changing-test-webhook-url/236828/12 "2026-07-12T03:58:03Z")

</div>

Closed on July 12, 2026, 3:58am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
