码迷,mamicode.com
首页 > Web开发 > 详细

nginx 配置 phpmyadmin

时间:2016-11-07 22:09:20      阅读:298      评论:0      收藏:0      [点我收藏+]

标签:app   class   highlight   nginx   oca   inf   set   ash   index   

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;
        }

}

  

nginx 配置 phpmyadmin

标签:app   class   highlight   nginx   oca   inf   set   ash   index   

原文地址:http://www.cnblogs.com/thrillerz/p/6040724.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!