I have a sub-domain, something.site.com. In my main-site, site.com/something, I would like to rewrite to something.site.com, but keep the url site.com/something intact.
Is that something I can do with nginx rewrite rules?
|
|
|
Quoting from the documentation I don't think this is possible:
|
|||
|
|
|
You will need to look into doing a proxy_pass instead of a rewrite. For example:
|
|||
|
|