New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
If more 50 subdomain of destination.com, how we do?
Haven't tried this, but try a regex capture:
Seem your rewrite not correct
server_name ~(?<sub>[^\.]*)\.destination\.com$;
Copied straight from my server, where this regex works fine.
proxy_pass $scheme://$sub.mydomain.com$request_uri
As i see it will bypass to your domain, not from destination
It will do exactly what you written in your first post.
No, you are mistake my mean. I want leech content from destination to my site via proxy_pass
Update: i just replace destination to mydomain and it work
By leech, do you mean redirect visitors of a page you don't have control over to your server? If so, it doesn't work like this.
I just replace destination to mydomain and it work