Apache Web UI configuration

1,918 views
Skip to first unread message

ense...@gmail.com

unread,
Jun 11, 2018, 1:17:40 PM6/11/18
to rspamd

Hello, I know it's not an rspamd issue, but can somebody help me set up its Web Ui with Apache2? Pretty please?

I'm getting a stripped and unusable UI. Apache's error log shows this:

File does not exist: /var/lib/roundcube/js/require.js, referer: https://poshto.esperanto.cat/rspamd
File does not exist: /var/lib/roundcube/img/rspamd_logo_navbar.png, referer: https://poshto.esperanto.cat/rspamd
File does not exist: /var/lib/roundcube/css/bootstrap.min.css, referer: https://poshto.esperanto.cat/rspamd

Clearly, the Web UI is not looking into the right directory for the files, which should be /usr/share/rspamd/www, as far as I know. This may be because Apache is serving from a virtual host whose document root is /var/lib/roundcube. I've created another apache conf file like this:

RewriteEngine on
RewriteRule ^/rspamd$ /rspamd/ [R]
ProxyPreserveHost On
ProxyPass "/rspamd" "http://localhost:11334"
ProxyPassReverse "/rspamd" "http://localhost:11334"

I turned it on doing "a2ensite rspamd.conf", and I also activated the Apache modules proxy_http and rewrite. What is missing? Does any of you have a working setup? Could you please post your Apache conf file to share, or else give some hint?

I've also tried substituting that configuration with the one here: https://rspamd.com/doc/faq.html#webui-questions

<Location /rspamd>
	Order allow,deny
	Allow from all
</Location>
RewriteRule ^/rspamd$ /rspamd/ [R,L]
RewriteRule ^/rspamd/(.*) http://localhost:11334/$1 [P,L]

However, I then get a "403 Forbidden" page.

Thanks in advance!


Ralf Hildebrandt

unread,
Jun 12, 2018, 9:50:22 AM6/12/18
to ense...@gmail.com, rsp...@googlegroups.com
You must use the config  https://rspamd.com/doc/faq.html#webui-questions -- check your logs to see why you're getting a 403. Probably you forgot to enable the proxy module in Apache2.


--
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.
Visit this group at https://groups.google.com/group/rspamd.

Rubén Fernández Asensio

unread,
Jun 12, 2018, 11:47:51 AM6/12/18
to rsp...@googlegroups.com
I am now, and still getting 403 error.

The /var/log/apache2/error.log shows no relevant message whatsoever.

The proxy module seems enabled:

apache2ctl -M
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgid_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
headers_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
php7_module (shared)
proxy_module (shared)
proxy_http_module (shared)
rewrite_module (shared)
setenvif_module (shared)
socache_shmcb_module (shared)
ssl_module (shared)
status_module (shared)


El 12/06/18 a les 15:50, Ralf Hildebrandt ha escrit:
Reply all
Reply to author
Forward
0 new messages