On Mon, Sep 12, 2022 at 12:54 AM Mark Dale via Mailman-Users <
mailman-users@python.org> wrote:

> On Sun, 2022-09-11 at 16:58 +0300, Odhiambo Washington wrote:
> > However, looking at the two files, I see references to:
> >
> > <form method="get" action="/cgi-bin/mailman/search">
> >
> > I suppose in my case this too has to be modified to reflect the
> > correct path.
> > With my MM2 installed in /usr/local/mailman2/ the above path then
> > should become "/mailman/cgi-bin/search" ??
> >
> > When I do a search now, I end up with an error saying "The requested
> > URL was not found on this server." and the resulting URL in the
> > address bar is:
> >
> >
> https://lists.kictanet.or.ke/cgi-bin/search?query=odhiambo&submit=Search%21&idxname=KICTANet&max=20&result=normal&sort=score
> >
>
>
> Firstly, check your mm_cfg.py file. In my case it is:
>
> DEFAULT_URL_PATTERN = 'https://%s/mailman/'
>
> Note that there is no "cgi-bin" in the above URL.
>
> If that's the same for you, then yes you need to edit the new
> archtoc.html and archtocnombox.html files accordingly.
>
> There are 2 strings in each file that would need to be edited so they
> look like:
>
> 1. <form method="get" action="/mailman/search">
>
> 2. <a href="/mailman/search?idxname=%(listname)s">[How to search]</a>
>
> Then rebuild the archive again:
>
> bin/arch --wipe <LISTNAME>
>
> And it won't hurt to tell Namazu to re-index the archive(s):
>
> ls /var/lib/namazu/mailman | xargs $HOME/bin/mailman_index


Thank you very much for this explanation. As a matter of fact, I had missed
seeing the 2nd string (perhaps out of anxiety).
It is now working quite well, and yes, I also put the searchbox at the top
instead of the bottom.


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
------------------------------------------------------
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/

Reply via email to