Page 1 of 1
Roundcube doesn't load CSS and JS
Posted: Mon Mar 13, 2017 3:56 pm
by stfnsn
Hi,
I login to my webmail and roundcube doesn't have style at all, plain HTML only. I can't find my mails and can't send any.
This is how it looks like:
My setup:
ubuntu 16.04, nginx+php-fpm, mail exim+devecot+spamassasin, dns, firewall iptables+fail2ban, mysql
Re: Roundcube doesn't load CSS and JS
Posted: Fri May 05, 2017 7:59 pm
by ArisC
Same Problem here but only for One of my Domains.
I'm looking into it but i don't know if I'll find anything....
Re: Roundcube doesn't load CSS and JS
Posted: Mon Oct 23, 2017 5:28 pm
by alexcy
Have the same problem. Anyone found a solution?
Re: Roundcube doesn't load CSS and JS
Posted: Tue Apr 03, 2018 2:04 pm
by gordonlgy
i found a solution
add
Code: Select all
location ~* ^/webmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
alias /var/lib/roundcube/$1;
}
to /etc/nginx/conf.d/webmail.inc
Code: Select all
location /webmail {
alias /var/lib/roundcube/;
location ~ /(config|temp|logs) {
return 404;
}
location ~ ^/webmail/(.*\.php)$ {
alias /var/lib/roundcube/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
location ~* ^/webmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
alias /var/lib/roundcube/$1;
}
}