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.ResponseWriter
which will proxy every method to originalResponseWriter
, but will overrideWriteHeaders
and change the value ofLocation
header before sending.
Related issues
Edited by Vladimir Shushlin