PoC: pages without wildcard domain
We want to allow users to run pages without wildcard SSL/DNS
One of the ideas is to put namespace into the first path segment.
This MR adds middleware which puts the first path segment back into host before handling the request.
It works for me:
Not addressed topics
-
Auth
-
SSL
-
Lets Encrypt's SSL
-
Anything involving redirects
The idea is to provide custom
http.ResponseWriterwhich will proxy every method to originalResponseWriter, but will overrideWriteHeadersand change the value ofLocationheader before sending.
Related issues
Edited by Vladimir Shushlin
