phpmyadmin を動作させる nginx 設定例

  • 投稿者:
  • 投稿カテゴリー:未分類
server {
       listen 80;
       server_name  xxx.akat.info;

       allow w.x.y.z;
       deny all;

       location / {
                root /usr/share/phpmyadmin;
                index index.php;
                }

        location ~ \.php$ {
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin/$fastcgi_script_name;
                include fastcgi_params;
        }
}