[Tanya] Running phpmyadmin on Nginx?


Status
Not open for further replies.

mustafaramadhan

Hosting Guru
kan saya blom tau Tuan mangkanya saya coba-coba hehehhehe :113:
Semestinya bisa disederhanakan menjadi:
Code:
set $var_phpmyadmin '/usr/share/phpmyadmin';

location /phpmyadmin/ {
        alias $var_phpmyadmin/;

    location ~ \.php$ {
        fastcgi_pass 127.0.0.1:9000;

        include /etc/nginx/fastcgi_params;

        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $var_phpmyadmin$fastcgi_script_name;
    }

    location ~ \.(eot|otf|woff|ttf|css|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|xls|tar|bmp)$ {
        expires 30d;
        log_not_found off;
        access_log off;
    }
}
 

damblue

Poster 1.0
Semestinya bisa disederhanakan menjadi:
Code:
set $var_phpmyadmin '/usr/share/phpmyadmin';

location /phpmyadmin/ {
        alias $var_phpmyadmin/;

    location ~ \.php$ {
        fastcgi_pass 127.0.0.1:9000;

        include /etc/nginx/fastcgi_params;

        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $var_phpmyadmin$fastcgi_script_name;
    }

    location ~ \.(eot|otf|woff|ttf|css|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|xls|tar|bmp)$ {
        expires 30d;
        log_not_found off;
        access_log off;
    }
}
oke mas thanks, itu jalan kan klo settingannya kayak mas diatas?
soalnya saya make cara exctrak langsung di /var/www/namadomain/
bisa jalan. ntar kapan2 jajal deh cara mas itu .
thanks udah nimbrung di trit saya
 
Status
Not open for further replies.

Top