
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:
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:
<form method="get" action="/mailman/search">
<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 '^$|^.*#' ¯\_(ツ)_/¯ :-)