主题: iRedMail 在 FreeBSD上装好后报错

装好之后,我发现网页无法访问。于是查看了下nginx,结果nginx未启动。原因如下:

$ sudo service nginx start
Performing sanity check on nginx configuration:
nginx: [emerg] open() "/usr/local/etc/nginx/conf-enabled/netdata.conf" failed (2: No such file or directory) in /usr/local/etc/nginx/nginx.conf:10
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed

我看了下netdata.conf@ -> /usr/local/etc/nginx/conf-available/ 这个目录,确实没有netdata.conf,说明bash iRedmail.sh之后,系统自动安装,漏了。
我用的是iRedMail-0.9.8-beta2

请看下,iRedMail-0.9.8-beta2这个版本是否有这个漏洞。然后我改如何做,能让netdata.conf在/usr/local/etc/nginx/conf-available/中出现。

谢谢

回复: iRedMail 在 FreeBSD上装好后报错

贴一下你的 /usr/local/etc/nginx/sites-enabled/00-default-ssl.conf.

回复: iRedMail 在 FreeBSD上装好后报错

$ cat 00-default-ssl.conf

#
# Note: This file must be loaded before other virtual host config files,
#
# HTTPS
server {
    listen 443;
    server_name _;

    root /usr/local/www/htdocs;
    index index.php index.html;

    include /usr/local/etc/nginx/templates/misc.tmpl;
    include /usr/local/etc/nginx/templates/ssl.tmpl;
    include /usr/local/etc/nginx/templates/iredadmin.tmpl;
    include /usr/local/etc/nginx/templates/roundcube.tmpl;
    include /usr/local/etc/nginx/templates/sogo.tmpl;
    include /usr/local/etc/nginx/templates/netdata.tmpl;
    include /usr/local/etc/nginx/templates/php-catchall.tmpl;
}