Nginx Directives field on the Options tab of the web site in ISPConfig

Discussion in 'Installation/Configuration' started by anonprophet, Aug 27, 2015.

  1. anonprophet

    anonprophet New Member

    im installing ISPConfig 3 using this tutorial
    https://www.howtoforge.com/the-perf...d-mysql-php-postfix-dovecot-and-ispconfig3-p4

    i cant find "Nginx Directives field on the Options tab of the web site in ISPConfig:" to paste this

    Code:
    location /phpmyadmin {
    root /usr/share/;
    index index.php index.html index.htm;
    location ~ ^/phpmyadmin/(.+\.php)$ {
    try_files $uri =404;
    root /usr/share/;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $request_filename;
    include /etc/nginx/fastcgi_params;
    fastcgi_param PATH_INFO $fastcgi_script_name;
    fastcgi_buffer_size 128k;
    fastcgi_buffers 256 4k;
    fastcgi_busy_buffers_size 256k;
    fastcgi_temp_file_write_size 256k;
    fastcgi_intercept_errors on;
    }
    location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
    root /usr/share/;
    }
    }
    location /phpMyAdmin {
    rewrite ^/* /phpmyadmin last;
    }
    
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Ensure that you are logged in as admin.
     
    anonprophet likes this.
  3. anonprophet

    anonprophet New Member

    thank, im already find it

    now my problem with squirrelmail, when i try to access it with /webmail or /squirrelmail
    i got error page
    404 Not Found

    im already paste below in Nginx Directives
    Code:
    location /squirrelmail {
      root /usr/share/;
      index index.php index.html index.htm;
      location ~ ^/squirrelmail/(.+\.php)$ {
      try_files $uri =404;
      root /usr/share/;
      fastcgi_pass unix:/var/run/php5-fpm.sock;
      fastcgi_param HTTPS $fastcgi_https;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $request_filename;
      include /etc/nginx/fastcgi_params;
      fastcgi_param PATH_INFO $fastcgi_script_name;
      fastcgi_buffer_size 128k;
      fastcgi_buffers 256 4k;
      fastcgi_busy_buffers_size 256k;
      fastcgi_temp_file_write_size 256k;
      fastcgi_intercept_errors on;
      }
      location ~* ^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
      root /usr/share/;
      }
    }
    location /webmail {
      rewrite ^/* /squirrelmail last;
    }
    
    where im wrong or missing?
     
  4. anonprophet

    anonprophet New Member

    Fixed, something wrong with Rules, i use default phpmyadmin rules and use roundcube
     

Share This Page