Created
January 31, 2019 08:32
-
-
Save RafikFarhad/38fffb59c3e7efd33d7e503b78f19e77 to your computer and use it in GitHub Desktop.
Nginx Adminer on port
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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