Next.js Discord

Discord Forum

Two Servers - 1 Domain | From WAF to Vercel and vice-versa

Unanswered
Asian black bear posted this in #help-forum
Open in Discord
Asian black bearOP
Hello everyone,

I am seeking assistance with a configuration scenario involving two servers under a single domain—Vercel and another server.

Here are the details:

1. We will have two servers under the same domain: one hosted on Vercel and another "monolithic" server.
2. It is essential that cookies set by the monolithic server are accessible on the Vercel server, and vice versa.
3. Routing Plan:
3.1. General Requests: Accessing www.example.com will direct the request to the monolithic server.
3.2. Specific Segment: Requests to www.example.com/shoes will be routed to the Vercel server.
3.3. WAF Routing: The Web Application Firewall (WAF) will handle the direction of requests between the Monolithic and Vercel servers based on the URL path.

Has anyone implemented a similar setup on Vercel or can offer insights into managing such a configuration?

Thank you for your support.

0 Replies