Skip to content

Instantly share code, notes, and snippets.

@laozhu
Last active October 11, 2015 11:18
Show Gist options
  • Save laozhu/3850695 to your computer and use it in GitHub Desktop.
Save laozhu/3850695 to your computer and use it in GitHub Desktop.
nginx conf file phpmyadmin
server {
listen 80;
server_name sql.laozhu.me;
location / {
root /home/laozhu/www/phpmyadmin;
index index.php;
try_files $uri $uri/ /index.php;
}
location ~* \.php$ {
root /home/laozhu/www/phpmyadmin;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
include /etc/nginx/fastcgi_params;
include /etc/nginx/fastcgi.conf;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment