Error 404, webmail and phpmyadmin Nginx ispconfig3 server Debian Wheezy

Discussion in 'Installation/Configuration' started by S0ft, Nov 28, 2014.

  1. S0ft

    S0ft Member HowtoForge Supporter

    http://www.howtoforge.com/perfect-server-debian-wheezy-nginx-bind-dovecot-ispconfig-3-p4
    help

    What file I add this?
    Where does this add?
    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;
            }
    

    I have another problem
    The tutorial AIMS to default
    http://ip:8081/phpmyadmin
    http://ip:8081/webmail
    but I've directs ispconfig3
    http://ip:8080/phpmyadmin [ERROR 404]
    http://ip:8080/webmail [ERROR 404]


    Where do I add this code?


    Code:
    location /squirrelmail {
           root /usr/share/;
           index index.php index.html index.htm;
           location ~ ^/squirrelmail/(.+\.php)$ {
                   try_files $uri =404;
                   root /usr/share/;
                   include /etc/nginx/fastcgi_params;
                   # To access SquirrelMail, the default user (like www-data on Debian/Ubuntu) must be used
                   fastcgi_pass 127.0.0.1:9000;
                   fastcgi_index index.php;
                   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                   fastcgi_buffer_size 128k;
                   fastcgi_buffers 256 4k;
                   fastcgi_busy_buffers_size 256k;
                   fastcgi_temp_file_write_size 256k;
           }
           location ~* ^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                   root /usr/share/;
           }
    }
    location /webmail {
           rewrite ^/* /squirrelmail last;
    }
     
    Last edited: Nov 29, 2014
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This code is optional and can be added in the nginx directives field of the website in ispconfig, as decsribed in the tutorial:

     
  3. S0ft

    S0ft Member HowtoForge Supporter

    Till, the control panel redirects me to 8080
    How do I change to redirect to 8081?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Enter the URL incl. port into the phpmyadmin url field in ispconfig under system > server config.
     
    S0ft likes this.
  5. S0ft

    S0ft Member HowtoForge Supporter

  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Enter the full url inkl. port.
     
  7. S0ft

    S0ft Member HowtoForge Supporter

    but this only works for 1 default domain.

    How do I change the port to make it work for multiple domains?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    You have to set the full URL starting with http:// Yu hav to use the hostname of the server here.
     

Share This Page