我已经按照这些说明配置了邮递员。
https://www.gnu.org/software/mailman/mailman-install/index.html
我遇到了这个问题
问题:所有 Mailman 网页都出现 404 文件未找到错误。解决方案:
Your web server has not been set up properly for handling Mailman’s CGI programs. Make sure you
have:
1. configured the web server to give permissions to ‘$prefix/cgi-bin’
2. restarted the web server properly.
Consult your web server’s documentation for instructions on how to do check these issues.
这是我的 httpd.conf 文件
ScriptAlias /mailman/ /usr/local/mailman/cgi-bin
Alias /pipermail/ /usr/local/mailman/archives/public/
<Directory "/usr/local/mailman/cgi-bin/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<Directory "/usr/local/mailman/archives/public/">
Options Indexes Includes FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all
</Directory>
我需要一些帮助。两天了都没能解决这个问题!
注意:我已按照错误消息中所述进行操作。
啊,我忘了我已经开始使用 https,并且查看了错误的错误日志。我想我可能已经弄清楚了。这是错误日志文件。看来我需要更改权限。
[Thu Dec 11 11:10:05 2014] [error] [client 166.173.58.152] Directory index forbidden by Options directive: /var/www/html/
[Thu Dec 11 11:10:21 2014] [error] [client 72.54.81.74] Directory index forbidden by Options directive: /var/www/html/
[Thu Dec 11 11:13:09 2014] [error] [client 173.57.131.200] Directory index forbidden by Options directive: /var/www/html/
[Thu Dec 11 15:23:12 2014] [error] [client 72.54.81.74] File does not exist: /var/www/html/mailman
[Thu Dec 11 15:23:16 2014] [error] [client 72.54.81.74] File does not exist: /var/www/html/mailman
[Thu Dec 11 15:24:46 2014] [error] [client 72.54.81.74] File does not exist: /var/www/html/mailman
[Thu Dec 11 15:36:29 2014] [error] [client 72.54.81.74] (13)Permission denied: exec of '/usr/local/mailman/cgi-bin/create' failed
[Thu Dec 11 15:36:29 2014] [error] [client 72.54.81.74] Premature end of script headers: create
[Thu Dec 11 15:36:38 2014] [error] [client 72.54.81.74] File does not exist: /var/www/html/mailman
[Thu Dec 11 15:36:45 2014] [error] [client 72.54.81.74] Directory index forbidden by Options directive: /var/www/html/
[Thu Dec 11 15:36:53 2014] [error] [client 72.54.81.74] (13)Permission denied: exec of '/usr/local/mailman/cgi-bin/create' failed
[Thu Dec 11 15:36:53 2014] [error] [client 72.54.81.74] Premature end of script headers: create
[Thu Dec 11 15:38:39 2014] [error] [client 72.54.81.74] script not found or unable to stat: /usr/local/mailman/cgi-bincreate
[Thu Dec 11 15:38:44 2014] [error] [client 72.54.81.74] File does not exist: /var/www/html/mailman
[Thu Dec 11 15:42:40 2014] [error] [client 72.54.81.74] File does not exist: /var/www/html/mailman
[Thu Dec 11 15:42:44 2014] [error] [client 72.54.81.74] script not found or unable to stat: /usr/local/mailman/cgi-bincreate
[Thu Dec 11 15:44:08 2014] [error] [client 72.54.81.74] script not found or unable to stat: /usr/local/mailman/cgi-binadmin
[Thu Dec 11 15:44:18 2014] [error] [client 72.54.81.74] File does not exist: /var/www/html/mailman
[Thu Dec 11 15:49:26 2014] [error] [client 72.54.81.74] File does not exist: /var/www/html/mailman
[Thu Dec 11 15:49:27 2014] [error] [client 72.54.81.74] File does not exist: /var/www/html/mailman
[Thu Dec 11 15:49:31 2014] [error] [client 72.54.81.74] script not found or unable to stat: /usr/local/mailman/cgi-bincreate
[Thu Dec 11 15:52:55 2014] [error] [client 72.54.81.74] script not found or unable to stat: /usr/local/mailman/cgi-bincreate
[Thu Dec 11 15:52:57 2014] [error] [client 72.54.81.74] script not found or unable to stat: /usr/local/mailman/cgi-bincreate
[Thu Dec 11 15:58:03 2014] [error] [client 72.54.81.74] script not found or unable to stat: /usr/local/mailman/cgi-bincreate
[Thu Dec 11 15:58:04 2014] [error] [client 72.54.81.74] script not found or unable to stat: /usr/local/mailman/cgi-bincreate
答案1
问题似乎出在这里:
ScriptAlias /mailman/ /usr/local/mailman/cgi-bin
正如您的错误日志条目所证明的那样
[Thu Dec 11 15:58:04 2014] [error] [client 72.54.81.74] script not found or unable to stat: /usr/local/mailman/cgi-bincreate
这应该有一个尾随/
,即:
ScriptAlias /mailman/ /usr/local/mailman/cgi-bin/