Hi, after importing old mm2 messages into mm3 archive I found that hyperkitty dos not show the lists index in home page if FILTER_VHOST = True
https://website/mailman3/hyperkitty/
show an empty lists. If I add list/list@domain1 I can see the archive.
I think the problem is the domain name example.com that I saw in the upper left corner.
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
Where am I wrong?
What have I to change in hyperkitty to have the correct domain shown?
Is there a documentation to configure that?
Hyperkitty version is 1.2.2
Thank you.
-- Gelpi ing. Andrea
It took the computing power of three C-64s to fly to the Moon. It takes a 486 to run Windows 95. Something is wrong here.
Gelpi Andrea wrote:
after importing old mm2 messages into mm3 archive I found that hyperkitty dos not show the lists index in home page if FILTER_VHOST = True
show an empty lists. If I add list/list@domain1 I can see the archive.
I think the problem is the domain name example.com that I saw in the upper left corner.
If in django administration I rename that site it works.
You need to rename the site and domain and then create additional sites/domains as necessary in the Django admin interface.
Once I did this my vhost config started working so long as the proper Host header was forwarded in the way that you describe.
Thanks. Andrew.
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.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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
-- Gelpi ing. Andrea
It took the computing power of three C-64s to fly to the Moon. It takes a 486 to run Windows 95. Something is wrong here.
On 4/28/20 10:26 AM, Gelpi Andrea wrote:
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)
See <https://gitlab.com/mailman/hyperkitty/-/merge_requests/243> for the fix I just proposed.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Andrew Hodgson
-
Gelpi Andrea
-
Mark Sapiro