Author Topic: Web interface partially broken with nginx  (Read 2898 times)

Offline koipen

  • Newbie
  • *
  • Posts: 2
Web interface partially broken with nginx
« on: September 23, 2015, 05:48:41 AM »
Web interface is partially broken for me with freshly installed Roundcube 1.1.2 and nginx 1.9.4 + php-fpm 5.6.13.
I can login, view emails and do most basic stuff.
When I open "About", I see and empty box.
If I visit Settings and click "User interface" for example, I see external "Loading..." animation on bottom right.
Same eternal "Sending message..." when I try to send an email (but it actually reaches its destination).

Code: [Select]
% cat sites-available/roundcube
server {
    include /etc/nginx/include/ssl.conf;
    include /etc/nginx/include/ssl-mydomain.conf;

    server_name  mail.mydomain.com;

    root  /var/www/roundcube;

    index index.php;

    location ~ ^/(README.md|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
        deny all;
    }

    location ~ /\. {
        deny all;
        access_log off;
        log_not_found off;
    }

    location ~ ^/(config|temp|logs)/ {
        deny all;
    }

    location ~ ^/program/(?!(resources|js)) {
        return 403;
    }

    location ~ ^(.+\.php)(.*)$ {
        try_files $fastcgi_script_name =404;
        fastcgi_split_path_info  ^(.+\.php)(.*)$;
        fastcgi_pass   unix:/var/run/php5-fpm.sock;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param  PATH_INFO        $fastcgi_path_info;
        include        /etc/nginx/fastcgi_params;
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /var/www/nginx-default;
    }
}

I don't see any useful errors in php5-fpm.log...

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: Web interface partially broken with nginx
« Reply #1 on: September 23, 2015, 07:00:06 AM »
Search keywords: nginx roundcube x-frame-options

Offline koipen

  • Newbie
  • *
  • Posts: 2
Re: Web interface partially broken with nginx
« Reply #2 on: September 23, 2015, 07:18:11 AM »
Thanks, I'm happy now.
How can I move this topic to Resolved issues?