Hi,
Odd issue between two OSes with the same config: In both cases, the archives are configured for public access. On one server, archives are accessible while on the other, access is denied with the error message:
*AH00037: Symbolic link not allowed or link target not accessible: /usr/local/mailman/archives/public/LISTNAME, referer: https://lists.server.name/mailman/listinfo/LISTNAME https://lists.server.name/mailman/listinfo/LISTNAME*
root@gw:/usr/local/etc/apache24/Includes # ls -al /usr/local/mailman/archives/public/LISTNAME/ total 12 drwxrwsr-x 2 root mailman 512 Jul 26 21:49 . drwxrws--- 58 root mailman 1536 Jul 26 21:49 .. -rw-rw-r-- 1 root mailman 493 Jul 26 21:49 index.html
<VirtualHost *:443> ServerAdmin odhiambo@gmail.com ServerName lists.server.name
RewriteEngine On
Redirect Permanent /htdig /icons/htdig
RedirectMatch ^/mailman[/]*$ /mailman/listinfo/
Alias /pipermail /usr/local/mailman/archives/public
<Directory /usr/local/mailman/icons/>
AllowOverride all
Require all granted
</Directory>
Alias /icons /usr/local/www/icons
<Directory /usr/local/mailman/icons/>
AllowOverride all
Require all granted
</Directory>
Alias /images/mailman/ /usr/local/mailman/icons/
<Directory /usr/local/www/icons/>
AllowOverride all
Require all granted
</Directory>
<Directory /usr/local/mailman/archives/public/>
Options Indexes FollowSymlinks *<= one
would think that this is where the issue is, but seems like it's elsewhere???* AllowOverride None Require all granted </Directory>
ScriptAlias /mailman/ /usr/local/mailman/cgi-bin/
<Directory /usr/local/mailman/cgi-bin/>
Options FollowSymLinks ExecCGI
AllowOverride None
Require all granted
</Directory>
ErrorLog /var/log/mailman-error.log
CustomLog /var/log/mailman-access.log combined
</VirtualHost>
On 7/27/20 5:51 AM, Odhiambo Washington wrote:
Hi,
Odd issue between two OSes with the same config: In both cases, the archives are configured for public access. On one server, archives are accessible while on the other, access is denied with the error message:
*AH00037: Symbolic link not allowed or link target not accessible: /usr/local/mailman/archives/public/LISTNAME, referer: https://lists.server.name/mailman/listinfo/LISTNAME https://lists.server.name/mailman/listinfo/LISTNAME*
root@gw:/usr/local/etc/apache24/Includes # ls -al /usr/local/mailman/archives/public/LISTNAME/ total 12 drwxrwsr-x 2 root mailman 512 Jul 26 21:49 . drwxrws--- 58 root mailman 1536 Jul 26 21:49 .. -rw-rw-r-- 1 root mailman 493 Jul 26 21:49 index.html
But /usr/local/mailman/archives/public/LISTNAME is a symlink to /usr/local/mailman/archives/private/LISTNAME so the above is a listing of /usr/local/mailman/archives/private/LISTNAME/
The issue is ownership and permissions on /usr/local/mailman/archives/private (the .. directory in the above). This directory has to be o+x or owned by the web server user. See https://www.list.org/mailman-install/node9.html.
Yours is o-x and owned by root.
<Directory /usr/local/mailman/archives/public/> Options Indexes FollowSymlinks *<= one
would think that this is where the issue is, but seems like it's elsewhere???*
It's not a symlink issue, it's an inaccessible target.
On Tue, 28 Jul 2020 at 06:33, Mark Sapiro mark@msapiro.net wrote:
On 7/27/20 5:51 AM, Odhiambo Washington wrote:
Hi,
Odd issue between two OSes with the same config: In both cases, the archives are configured for public access. On one server, archives are accessible while on the other, access is
denied
with the error message:
*AH00037: Symbolic link not allowed or link target not accessible: /usr/local/mailman/archives/public/LISTNAME, referer: https://lists.server.name/mailman/listinfo/LISTNAME https://lists.server.name/mailman/listinfo/LISTNAME*
root@gw:/usr/local/etc/apache24/Includes # ls -al /usr/local/mailman/archives/public/LISTNAME/ total 12 drwxrwsr-x 2 root mailman 512 Jul 26 21:49 . drwxrws--- 58 root mailman 1536 Jul 26 21:49 .. -rw-rw-r-- 1 root mailman 493 Jul 26 21:49 index.html
But /usr/local/mailman/archives/public/LISTNAME is a symlink to /usr/local/mailman/archives/private/LISTNAME so the above is a listing of /usr/local/mailman/archives/private/LISTNAME/
The issue is ownership and permissions on /usr/local/mailman/archives/private (the .. directory in the above). This directory has to be o+x or owned by the web server user. See https://www.list.org/mailman-install/node9.html.
Yours is o-x and owned by root.
<Directory /usr/local/mailman/archives/public/> Options Indexes FollowSymlinks *<= one
would think that this is where the issue is, but seems like it's elsewhere???*
It's not a symlink issue, it's an inaccessible target.
Thank you. I am now do done with MM2 issues. Now to MM3.