Skip to content

Instantly share code, notes, and snippets.

@RafikFarhad
Created January 31, 2019 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RafikFarhad/38fffb59c3e7efd33d7e503b78f19e77 to your computer and use it in GitHub Desktop.
Save RafikFarhad/38fffb59c3e7efd33d7e503b78f19e77 to your computer and use it in GitHub Desktop.
Nginx Adminer on port
server {
listen 51;
root /usr/share/adminer;
# Logging
error_log /var/log/nginx/adminer.access_log;
access_log /var/log/nginx/adminer.error_log;
location / {
index index.php;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
access_log off;
expires 360d;
}
location ~ /\.ht {
deny all;
}
location ~ /(libraries|setup/frames|setup/libs) {
deny all;
return 404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment