© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Partial rewrites using nginx - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
•
12 replies
cje
Partial rewrites using nginx
Anyone here familiar with doing partial rewrites using nginx
?
I have a setup with three containers
:
- nginx
- legacy app
(lives at www
.example
.com
)
- new Next
.js app
Requests to
www.example.com/new-feature
www.example.com/new-feature
should use the Next
.js app
When the Next
.js app makes a request to
www.example.com/new-feature/endpoint
www.example.com/new-feature/endpoint
, this should be handled by the legacy app
.
I
'd also like for the legacy app
's cookie based auth to work in the Next
.js app
.
I
'm sure someone has written a comprehensive article on this before
, I just can
't seem to figure out what to google for to find it
.
Theo's Typesafe Cult
Join
27,305
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Redirect and Middleware rewrites
TTC
Theo's Typesafe Cult / questions
2y ago
Docker & Nginx - ports
TTC
Theo's Typesafe Cult / questions
4y ago