nginx 配置 phpmyadmin

server {
        listen 8092;
        server_name *.xxx.com;
        root /home/users/cuijian04/odp302/app/phpmyadmin;

        set $php_upstream 'unix:/home/users/cuijian04/odp302/var/hhvm.sock';

        location ~ ^/themes/ {
            root            /home/users/cuijian04/odp302/app/phpmyadmin/;
            break;
        }

        location / {
            root /home/users/cuijian04/odp302/app/phpmyadmin;
            fastcgi_pass   $php_upstream;
            fastcgi_index  index.php;
            include        fastcgi.conf;
        }

        location ~* \.php$ {
                index index.php
                fastcgi_index index.php;
                fastcgi_pass   $php_upstream;
                fastcgi_split_path_info ^(.+\.php)(.*)$;
                include        fastcgi.conf;
        }

}

  

posted @ 2016-11-07 21:27  thrillerz  阅读(888)  评论(0编辑  收藏  举报