Skip to content

Instantly share code, notes, and snippets.

@masiur
Created July 10, 2018 17:04
Show Gist options
  • Select an option

  • Save masiur/fa8744bd14f0e9b41e17f03edfed17e1 to your computer and use it in GitHub Desktop.

Select an option

Save masiur/fa8744bd14f0e9b41e17f03edfed17e1 to your computer and use it in GitHub Desktop.
phpmyadmin nginx configuration
server {
listen 50;
listen 9999;
listen [::]:50;
listen [::]:9999;
root /usr/share/phpmyadmin/;
index index.php index.html index.htm index.nginx-debian.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment