Il 28/04/20 19:10, Mark Sapiro ha scritto:
On 4/28/20 9:40 AM, Gelpi Andrea wrote:
If in django administration I rename that site it works.
But having more than one domain this is not a solution.
what i need is to separate different domains
https:/website1/mailman3/hyperkitty shows some lists https:/website2/mailman3/hyperkitty shows other lists
There are issues with FILTER_VHOST. See <https://gitlab.com/mailman/postorius/-/issues/394> for the Postorius issue. This will be fixed for Postorius in the next release.
For HyperKitty, the issue is <https://gitlab.com/mailman/hyperkitty/-/issues/254>. This is not yet fixed.
Currently, if FILTER_VHOST is True, HyperKitty only shows lists in the index for which the list's domain matches the domain in the accessing url with a leading 'www.' stripped.
E.g. list@example.com will only show on the index if the accessing URL's host is example.com or www.example.com, but not if it is say lists.example.com.
Thank You I just discovered it.
I put a workaround for now in index.py so also list.example.com works.
# Domain filtering
if settings.FILTER_VHOST:
domain = request.get_host().split(":")[0]
if domain.startswith("www."):
domain = domain[4:]
#gg# Added by Gelpi
if domain.startswith("list."):
domain = domain[5:]
domain = "@%s" % domain
mlists = mlists.filter(name__iendswith=domain)
Regards