Skip to content

Instantly share code, notes, and snippets.

@why404
Created December 31, 2009 06:48
Show Gist options
  • Save why404/266647 to your computer and use it in GitHub Desktop.
Save why404/266647 to your computer and use it in GitHub Desktop.
server {
listen 3307;
server_name pma.example.com;
charset utf-8;
index index.php;
root /home/demo/web/pma;
location ~ .*\.php5?$ {
include fastcgi_params;
root /home/demo/web/pma;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
}
# fastcgi_pass 选项的值也可以填入 unix:/var/run/php_fcgi.sock ,
# 不过需要修改 /etc/php-fpm.conf 并设置 listen_address 为 /var/run/php_fcgi.sock
access_log /home/demo/web/logs/phpmyadmin_access.log;
error_log /home/demo/web/logs/phpmyadmin_error.log;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment