[Mailman-Users] fixing URLs...

2020-08-05 Thread Keith Seyffarth


I have a list for a community service club, and something happened on
the server (probably related to a container software upgrade) the end
result of which is that many URLs in the admin area, particularly for
the archives and for the form submission buttons, have changed from the
club's domain to the internal configuration name for the server. This
results in many links and buttons generating 404 errors for users...

I believe the command that needs to be run to correct this is:
 $prefix/bin/withlist -l -r fix_url listname -u list_web_domain
which I found at
https://wiki.list.org/DOC/4.27%20Securing%20Mailman%27s%20web%20GUI%20by%20using%20Secure%20HTTP-SSL%20%28HTTPS%29?action=show&redirect=DOC%2F4.27+Securing+Mailman%27s+web+GUI+by+using+Secure+HTTP-SSL


I have been able to figure out what "prefix" is on this server, but what
is the format for "list_web_domain?" Is is
http://lists.[clubs'sdomain].tld/ or is is just [club'sdomain].tld - or
is it something else?

Thanks,
Keith
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: fixing URLs...

2020-08-05 Thread Mark Sapiro
On 8/5/20 4:56 PM, Keith Seyffarth wrote:
> 
> I believe the command that needs to be run to correct this is:
>  $prefix/bin/withlist -l -r fix_url listname -u list_web_domain
> which I found at
> https://wiki.list.org/DOC/4.27%20Securing%20Mailman%27s%20web%20GUI%20by%20using%20Secure%20HTTP-SSL%20%28HTTPS%29?action=show&redirect=DOC%2F4.27+Securing+Mailman%27s+web+GUI+by+using+Secure+HTTP-SSL


A possibly more relevant FAQ article for this is
.


> I have been able to figure out what "prefix" is on this server, but what
> is the format for "list_web_domain?" Is is
> http://lists.[clubs'sdomain].tld/ or is is just [club'sdomain].tld - or
> is it something else?


It's just club's domain, but more is required. In order for that to
work, you need to have in Mailman/mm_cfg.py (in the same $prefix directory)

add_virtualhost('club's_web_domain', 'club's_email_domain')

Or perhaps

DEFAULT_URL_HOST = 'club's_web_domain'
DEFAULT_EMAIL_HOST = 'club's_email_domain'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

Without that, fix_url will fix the web page links, but it may break the
list's host_name - the name exposed on the list admin General Options as
"Host name this list prefers for email."

See .

This is important for example if the domains are different such as web
domain is www.club.domain and the email domain is club.domain. If both
web URL and email domains are the same, it doesn't matter and you can
just run fix_url as above.

Possibly, part of the underlying issue is changes being made in
Mailman/Defaults.py rather than Mailman/mm_cfg.py. Defaults.py gets
overwritten in an upgrade which is why changes should always be made as
redefinitions in mm_cfg.py.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: fixing URLs...

2020-08-05 Thread Keith Seyffarth


Mark Sapiro  writes:

> On 8/5/20 4:56 PM, Keith Seyffarth wrote:
>> 
>> I believe the command that needs to be run to correct this is:
>>  $prefix/bin/withlist -l -r fix_url listname -u list_web_domain
>> which I found at
>> https://wiki.list.org/DOC/4.27%20Securing%20Mailman%27s%20web%20GUI%20by%20using%20Secure%20HTTP-SSL%20%28HTTPS%29?action=show&redirect=DOC%2F4.27+Securing+Mailman%27s+web+GUI+by+using+Secure+HTTP-SSL
>
>
> A possibly more relevant FAQ article for this is
> .
>
>
>> I have been able to figure out what "prefix" is on this server, but what
>> is the format for "list_web_domain?" Is is
>> http://lists.[clubs'sdomain].tld/ or is is just [club'sdomain].tld - or
>> is it something else?
>
>
> It's just club's domain, but more is required. In order for that to
> work, you need to have in Mailman/mm_cfg.py (in the same $prefix directory)
>
> add_virtualhost('club's_web_domain', 'club's_email_domain')
>
> Or perhaps
>
> DEFAULT_URL_HOST = 'club's_web_domain'
> DEFAULT_EMAIL_HOST = 'club's_email_domain'
> add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>
> Without that, fix_url will fix the web page links, but it may break the
> list's host_name - the name exposed on the list admin General Options as
> "Host name this list prefers for email."
>
> See .
>
> This is important for example if the domains are different such as web
> domain is www.club.domain and the email domain is club.domain. If both
> web URL and email domains are the same, it doesn't matter and you can
> just run fix_url as above.
>
> Possibly, part of the underlying issue is changes being made in
> Mailman/Defaults.py rather than Mailman/mm_cfg.py. Defaults.py gets
> overwritten in an upgrade which is why changes should always be made as
> redefinitions in mm_cfg.py.

Thanks Mark. That was definitely helpful. The domain was in
add_virtualhost in the mm_cfg.py. Defaults.py had not been changed. I'm
not sure what had happened. But running
bin/withlist -l -r fix_url listname -u list_web_domain
with the name as it was entered in the add_virtualhost entry seems to
have fixed it.

Keith
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/