adamkdean / redirect

Redirection lightweight companion container for the nginx-proxy.
19 stars 5 forks source link

Handling Multiple Sites #4

Closed MartinHarran closed 3 years ago

MartinHarran commented 3 years ago

This seems a nice solution and works in reverse i.e. www to non-www but can it handle multiple sites? For example, can I redirect two hosted sites - www.domain1.com to domain1.com and www.domain2 to domain2?

If so, it could be a neat way of handling the redirection of different sites in one place rather than through DNS for each one.

adamkdean commented 3 years ago

Hi @MartinHarran, just saw your Stack Overflow comment. This is something I'm planning to add but as it stands it doesn't exist. I'll let you know once it has been added though!

MartinHarran commented 3 years ago

Sounds good!

adamkdean commented 3 years ago

@MartinHarran this is now complete. I've tested it, and 1.2 should be backwards-compatible with 1.1 but if you have any issues, please let me know.

adamkdean commented 3 years ago

Tested and working now with version 1.2.3