[SOLVED] - [Problem] Debian Jessie +ISPConfig3 + Nginx + Roundcube

Discussion in 'Installation/Configuration' started by MikySal78, May 22, 2016.

  1. MikySal78

    MikySal78 Member

    im read this howto www.howtoforge.com/tutorial/roundcube-installation-on-debian-8-jessie/ for install roundcube

    in my /etc/nginx/sites-available/ispconfig.vhost add this
    Code:
            location /webmail {
                    root /opt/roundcube/;
                    index index.php index.html index.htm;
                    location ~ ^/(.+\.php)$ {
                            try_files $uri =404;
                            root /opt/roundcube/;
                            fastcgi_pass 127.0.0.1:9000;
                            fastcgi_index index.php;
                            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                            include /etc/nginx/fastcgi_params;
                            fastcgi_buffer_size 128k;
                            fastcgi_buffers 256 4k;
                            fastcgi_busy_buffers_size 256k;
                            fastcgi_temp_file_write_size 256k;
                            fastcgi_intercept_errors on;
                    }
                    location ~* ^/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                            root /opt/roundcube/;
                    }
            }
    
    bat don't work, i have page 404
    where i'm wrong?
    thanks.
     
  2. MikySal78

    MikySal78 Member

    SOLVED!!

    nano webmail.vhost
    Code:
    server {
          listen 80;
          server_name webmail.*;
          index index.php index.html;
          root /opt/roundcube;
          location ~ ^/favicon.ico$ {
        root /opt/roundcube/XXX/default/images;
            log_not_found off;
            access_log off;
            expires max;
          }
          location = /robots.txt {
              allow all;
              log_not_found off;
              access_log off;
          }
          location ~ ^/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
              deny all;
          }
          location ~ ^/(bin|SQL)/ {
              deny all;
          }
          location ~ /\. {
              deny all;
              access_log off;
              log_not_found off;
          }
          location ~ \.php$ {
              try_files $uri =404;
              include /etc/nginx/fastcgi_params;
              fastcgi_pass unix://var/lib/php5-fpm/apps.sock;
              fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
              fastcgi_index index.php;
          }
    }
    XXX = s k i n s
     

Share This Page