VestaCp Erro WebMail and PhpMy Admin

reyh18

New Member
YetiShare User
Aug 28, 2018
6
5
3
33
Please help me with this question, in my vesta panel I can not use my database or my webmail when I enter this code in the .conf file:

#location / {
if (! -e $ request_filename) {
rewrite ^ / (. *) /index.php?_page_url=$1 last;

when I log in, this code in the .conf file, my webmail and my mysql page do not work, I have tested row by row and only this row that causes these errors.

Someone who uses vestacp with yetishare, who has webmail roundcub and phpmyadmin with Pure NGIX + PHP-FPM Running, Please can post the settings of your file. Conf. Here.

Thank you.
 

reyh18

New Member
YetiShare User
Aug 28, 2018
6
5
3
33
Post your complete conf file here and what errors are you getting?

thank you very much

worldofpcgames46668

here is the data you asked me the error is this 500, the site is working perfectly, just not able to access:

myip / webmail
myip / phpmyadmin


Code:
server {
    listen      myip:80;
    server_name myip www.myip;
    root        /home/admin/web/myip/public_html;
    index       index.php index.html index.htm;
    access_log  /var/log/nginx/domains/myip.log combined;
    access_log  /var/log/nginx/domains/myip.bytes bytes;
    error_log   /var/log/nginx/domains/myip.error.log error;

    client_max_body_size 5G;
    
    # sonis.com add
        rewrite ^/embed/([^/]*)$ /plugins/mediaplayer/site/_embed.php?u=$1 last;
    
        # allow for paths ending with forward slashes
        rewrite ^/app/(.*)/ /plugins/webdav/site/control/$1 last;
        rewrite ^/app/(.*) /plugins/webdav/site/control/$1 last;
    
        # all webdav requests
        location /plugins/webdav/site/control/ {
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            gzip off;
            fastcgi_pass 127.0.0.1:9001;
            fastcgi_index index.php;
            fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
            include fastcgi_params;
        }
    
        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        location ~ \.php$ {
            if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; }
            fastcgi_pass 127.0.0.1:9001;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
            include fastcgi_params;
        }
    
         #location / {
            if (!-e $request_filename) {
                rewrite ^/(.*) /index.php?_page_url=$1 last;
            }
         #}
    
        location /files/ {
            internal;
        }
    
        # these locations would be hidden by .htaccess normally
        location /core/logs/ {
            deny all;
        }                                                 


    error_page  403 /error/404.html;
    error_page  404 /error/404.html;
    error_page  500 502 503 504 /error/50x.html;

    location /error/ {
        alias   /home/admin/web/myip/document_errors/;
    }

    location ~* "/\.(htaccess|htpasswd)$" {
        deny    all;
        return  404;
    }

    location /vstats/ {
        alias   /home/admin/web/myip/stats/;
        include /home/admin/conf/web/myip.auth*;
    }

    include     /etc/nginx/conf.d/phpmyadmin.inc*;
    include     /etc/nginx/conf.d/phppgadmin.inc*;
    include     /etc/nginx/conf.d/webmail.inc*;

    include     /home/admin/conf/web/nginx.myip.conf*;
}

500.png