Apache反向代理Rspamd后Web UI导航失效(URL片段无作用)问题排查求助
Apache反向代理Rspamd后Web UI导航失效(URL片段无作用)问题排查求助
我在Ubuntu 23.10上部署了Apache 2.4.57和Rspamd 3.6,把Apache配置成了Rspamd控制器worker的反向代理。现在能正常访问Rspamd的Web UI,输入密码后也能看到主页面,但所有菜单导航都失效——点击「Status」「Throughput」「Configuration」这些选项时页面完全没变化。
我的配置信息
Rspamd控制器worker配置
root@h2917298:~ # cat /etc/rspamd/override.d/worker-controller.inc password = "<my-pwd-hash>" enable_password = "<my-pwd-hash>" bind_socket = "/var/run/rspamd/controller.sock mode=0770";
Apache虚拟主机配置
root@h2917298:~ # cat /etc/apache2/sites-enabled/my-host.my-domain.tld.conf <VirtualHost *:80> ServerName my-host.my-domain.tld ServerAdmin admin@my-domain.tld Redirect 308 / https://my-host.my-domain.tld/ </VirtualHost> <VirtualHost *:443> ServerName my-host.my-domain.tld ServerAdmin admin@my-domain.tld DocumentRoot /var/www/my-host.my-domain.tld/ SSLEngine on SSLCertificateFile /etc/letsencrypt/live/my-host.my-domain.tld/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/my-host.my-domain.tld/privkey.pem SSLCACertificatePath /etc/ssl/certs/ Header always set Strict-Transport-Security "max-age=31104000; includeSubDomains" <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> ProxyPass /rspamd unix:/var/run/rspamd/controller.sock|http://localhost/ ProxyPassReverse /rspamd unix:/var/run/rspamd/controller.sock|http://localhost/ </VirtualHost>
权限配置(www-data用户组)
root@h2917298:~ # groups www-data www-data : www-data redis _rspamd
异常现象
- 点击Web UI菜单中的任何选项,页面都停留在主界面,没有任何内容切换
- 直接访问带URL片段的地址(比如
https://my-host.my-domain.tld/rspamd/#status、https://my-host.my-domain.tld/rspamd/#throughput等),所有地址都显示同一个主页面,片段参数完全不起作用 - 检查了Apache和Rspamd的日志,没有发现任何报错信息
我的初步分析
我注意到Rspamd的Web UI采用的是客户端侧导航(依赖URL片段,这部分内容不会发送到服务器端),所以一开始觉得可能不是服务器配置的问题,但现在导航完全失效,实在找不到问题根源。有没有朋友能帮我排查一下哪里出错了?
备注:内容来源于stack exchange,提问作者user2690527
相关产品推荐
相关产品推荐

