如果是在 Apahce 下使用 alias 很簡單...不過如果是在 nginx 底下...需要這樣設定 :
把底下這串加在 server { } 之間...那就可以囉~~
location /phpmyadmin {
alias /home/RPM/phpmyadmin/;
try_files $uri $uri/ /index.php;
}
location ~ ^/phpmyadmin(.+\.php)$ {
alias /home/RPM/phpmyadmin$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/RPM/phpmyadmin$1;
include fastcgi_params;
}