adamkdean / redirect

Redirection lightweight companion container for the nginx-proxy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handling Multiple Sites

MartinHarran opened this issue · comments

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.

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!

Sounds good!

@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.

Tested and working now with version 1.2.3