centos nginx下安装phpmyadmin
# cd /etc/nginx/vhost/# cat phpmyadmin.conf
server{
server_name www.test.com;
index index.html index.htm index.php;
root /home/wwwroot/phpmyadmin;
location ~ .*\.(php|php5)?$ {
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
include fastcgi.conf;
}
}
页:
[1]