我将nginx配置为使用rspamd Web界面来管理邮件服务器上的垃圾邮件
文件:/etc/nginx/sites-available/mail.mysystems.tld
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/mail.mysystems.tld/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mail.mysystems.tld/privkey.pem;
server_name mail.mysystems.tld;
root /var/www/default;
if ($ssl_protocol = "") {
return 301 https://$server_name$request_uri;
}
location /rspamd/ {
proxy_pass http://localhost:11334/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
现在,当我打开mysystems.tld时,我想在/ var / www / html中显示一个index.html文件(与rspamd接口无关)。现在打开mysystems.tld时,我会得到
DNS_PROBE_FINISHED_NXDOMAIN#
我是否需要一个额外的配置文件(例如/etc/nginx/sites-available/mysystems.tld)?