Cannot get into Web UI with Apache

892 views
Skip to first unread message

TG Servers

unread,
Feb 17, 2018, 3:38:40 PM2/17/18
to rsp...@googlegroups.com
Hi,

can someone please help me? I cannot get it to work to access the Web UI
through a proxy (from outside the server through a browser). I tried all
from the documentation, nothing seems to work.
I want to put it into an own VirtualHost section and then access it with
ProxyPass to localhost port 11334 through https
Please help, thanks.

It is definitely listening
tcp 0 0 127.0.0.1:11334 0.0.0.0:*
LISTEN 4420/rspamd: main p

but I always get redirected to my main web root :(


My configuration for rspamd looks following :

/etc/rspamd/local.d/options.inc
local_addrs = "127.0.0.0/8, ::1";

/etc/rspamd/local.d/worker-normal.inc
bind_socket = "localhost:11333";

/etc/rspamd/local.d/worker.proxy.inc
bind_socket = "localhost:11332";
milter = yes;
timeout = 120s;
upstream "local" {
default = yes;
self_scan = yes;
}

/etc/rspamd/local.d/logging.inc
type = "file";
filename = "/var/log/rspamd/rspamd.log";
level = "error";
debug_modules = [];

/etc/rspamd/local.d/milter_headers.conf
use = ["x-spamd-bar", "x-spam-level", "authentication-results"];
authenticated_headers = ["authentication-results"];

/etc/rspamd/local.d/classifier-bayes.conf
backend = "redis";

/etc/rspamd/local.d/worker-controller.inc
password = "XXX"

TG Servers

unread,
Feb 18, 2018, 4:04:46 AM2/18/18
to rsp...@googlegroups.com
This is what I get in debug log of apache :
[Sun Feb 18 09:58:46.778908 2018] [proxy:debug] [pid 7189:tid
140144626263808] proxy_util.c(2156): AH00942: HTTP: has acquired
connection for (127.0.0.1)
[Sun Feb 18 09:58:46.778912 2018] [proxy:debug] [pid 7189:tid
140144626263808] proxy_util.c(2209): [client 192.168.10.2:54969]
AH00944: connecting http://127.0.0.1:11334/ to 127.0.0.1:11334
[Sun Feb 18 09:58:46.778918 2018] [proxy:debug] [pid 7189:tid
140144626263808] proxy_util.c(2418): [client 192.168.10.2:54969]
AH00947: connected / to 127.0.0.1:11334
[Sun Feb 18 09:58:46.779010 2018] [proxy:debug] [pid 7189:tid
140144626263808] proxy_util.c(2887): AH02824: HTTP: connection
established with 127.0.0.1:11334 (127.0.0.1)
[Sun Feb 18 09:58:46.779030 2018] [proxy:debug] [pid 7189:tid
140144626263808] proxy_util.c(3054): AH00962: HTTP: connection complete
to 127.0.0.1:11334 (127.0.0.1)
[Sun Feb 18 09:58:46.779204 2018] [proxy:debug] [pid 7189:tid
140144626263808] proxy_util.c(2171): AH00943: http: has released
connection for (127.0.0.1)
[Sun Feb 18 09:58:46.779278 2018] [http2:debug] [pid 7189:tid
140144626263808] h2_task.c(86): [client 192.168.10.2:54969] AH03348:
h2_task(0-9): open output to GET ms2.t.test.local /rspamd
[Sun Feb 18 09:58:46.779334 2018] [http2:debug] [pid 7189:tid
140144542336768] h2_session.c(1312): [client 192.168.10.2:54969]
AH03073: h2_stream(0-9,HALF_CLOSED_REMOTE): submit response 404,
REMOTE_WINDOW_SIZE=6291456
[Sun Feb 18 09:58:46.779349 2018] [http2:debug] [pid 7189:tid
140144542336768] h2_session.c(1462): [client 192.168.10.2:54969]
AH02936: h2_stream(0-9,HALF_CLOSED_REMOTE): resumed
[Sun Feb 18 09:58:46.779361 2018] [http2:debug] [pid 7189:tid
140144542336768] h2_session.c(543): [client 192.168.10.2:54969] AH03068:
h2_session(0,BUSY,1): sent FRAME[HEADERS[length=11, hend=1, stream=9,
eos=0]], frames=8/12 (r/s)
[Sun Feb 18 09:58:46.779370 2018] [http2:debug] [pid 7189:tid
140144542336768] h2_session.c(543): [client 192.168.10.2:54969] AH03068:
h2_session(0,BUSY,1): sent FRAME[DATA[length=9, flags=1, stream=9,
padlen=0]], frames=8/13 (r/s)
[Sun Feb 18 09:58:46.779464 2018] [http2:debug] [pid 7189:tid
140144542336768] h2_bucket_beam.c(1269): [client 192.168.10.2:54969]
beam(0-9,output,closed=1,aborted=1,empty=1,buf=0): AH03385:
h2_task_destroy, reuse slave
[Sun Feb 18 09:58:46.779626 2018] [http2:debug] [pid 7189:tid
140144542336768] h2_session.c(1612): [client 192.168.10.2:54969]
AH03078: h2_session(0,BUSY,0): transit [BUSY] -- no io (keepalive) -->
[IDLE]
[Sun Feb 18 09:58:52.813212 2018] [http2:debug] [pid 7189:tid
140144533944064] h2_session.c(543): [client 192.168.10.2:54969] AH03068:
h2_session(0,IDLE,0): sent FRAME[GOAWAY[error=0, reason='timeout',
last_stream=9]], frames=8/14 (r/s)
[Sun Feb 18 09:58:52.813309 2018] [http2:debug] [pid 7189:tid
140144533944064] h2_session.c(668): [client 192.168.10.2:54969] AH03069:
h2_session(0,IDLE,0): sent GOAWAY, err=0, msg=timeout
[Sun Feb 18 09:58:52.813319 2018] [http2:debug] [pid 7189:tid
140144533944064] h2_session.c(1612): [client 192.168.10.2:54969]
AH03078: h2_session(0,IDLE,0): transit [IDLE] -- local goaway --> [DONE]
[Sun Feb 18 09:58:52.813324 2018] [http2:debug] [pid 7189:tid
140144533944064] h2_session.c(1612): [client 192.168.10.2:54969]
AH03078: h2_session(0,DONE,0): transit [DONE] -- pre_close --> [CLEANUP]

and this is from rspamd.log
2018-02-18 09:58:46 #1921(controller) <eba25e>; csession;
rspamd_controller_error_handler: http error occurred: Not found
2018-02-18 09:58:46 #1921(controller) <a0c3aa>; csession;
rspamd_controller_error_handler: http error occurred: Not found

On the browser I have a simple : "Not found"

TG Servers

unread,
Feb 18, 2018, 4:42:10 AM2/18/18
to rsp...@googlegroups.com
And there is this : Cannot stat $WWWDIR in the rspamd.log with level info

2018-02-18 10:38:30 #8316(controller) rspamd_http_router_new: cannot
stat $(WWWDIR)
2018-02-18 10:38:30 #8316(controller) <xa6qqy>; map; http_map_finish:
https://rspamd.com/freemail/disposable.txt.zst(88.99.142.95:443): read
map data 1963 bytes compressed, 4895 unsed
2018-02-18 10:38:30 #8316(controller) <xa6qqy>; map; http_map_finish:
https://rspamd.com/freemail/disposable.txt.zst(88.99.142.95:443): read
map data 1963 bytes compressed, 4895 unsed
2018-02-18 10:38:30 #8316(controller) <xa6qqy>; map; http_map_finish:
https://rspamd.com/freemail/disposable.txt.zst(88.99.142.95:443): read
map data 1963 bytes compressed, 4895 unsed
2018-02-18 10:38:30 #8316(controller) <qwxppg>; map; http_map_finish:
https://rspamd.com/freemail/free.txt.zst(88.99.142.95:443): read map
data 21640 bytes compressed, 60643 uncomp
2018-02-18 10:38:30 #8316(controller) <qwxppg>; map; http_map_finish:
https://rspamd.com/freemail/free.txt.zst(88.99.142.95:443): read map
data 21640 bytes compressed, 60643 uncomp
2018-02-18 10:38:30 #8316(controller) <qwxppg>; map; http_map_finish:
https://rspamd.com/freemail/free.txt.zst(88.99.142.95:443): read map
data 21640 bytes compressed, 60643 uncomp
2018-02-18 10:38:30 #8316(controller) <qwxppg>; map; http_map_finish:
https://rspamd.com/freemail/free.txt.zst(88.99.142.95:443): read map
data 21640 bytes compressed, 60643 uncomp
2018-02-18 10:38:33 #8316(controller) <760f9d>; csession;
rspamd_controller_error_handler: http error occurred: Not found
2018-02-18 10:38:33 #8316(controller) rspamd_http_router_finish_handler:
path: / not found

TG Servers

unread,
Feb 18, 2018, 4:56:26 AM2/18/18
to rsp...@googlegroups.com
Getting closer now : after setting static_dir = "/usr/share/rspamd/www"
I am finally getting a page.

Ah yes, I am on CentOS 7.4 and using version 1.6.6

But I am not getting a clean page it looks crippled. Don't know if I can append pictures here I try it.


2018-02-18 10_49_57-Rspamd Web Interface.jpg

TG Servers

unread,
Feb 18, 2018, 5:03:30 AM2/18/18
to rsp...@googlegroups.com
Came so far...
Also, when I click the links the URL changes but nothing happens,
there seems to be something really wrong here.
But everything else on the server works, phpmyadmin on it's own port,
the access to the domains.... Everything ok so far. It's only with this.
You said you don't need special configuration of Apache but my Apache
conf is really stripped down (eg, no CGI exec allowed etc.)

Can you please support someone? Thanks.
> --
> You received this message because you are subscribed to the Google
> Groups "rspamd" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to rspamd+un...@googlegroups.com
> <mailto:rspamd+un...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/rspamd.

TG Servers

unread,
Feb 18, 2018, 5:28:17 AM2/18/18
to rsp...@googlegroups.com
Got it working finally on my own now :)
Reply all
Reply to author
Forward
0 new messages