Skip to content

Instantly share code, notes, and snippets.

@ozzpy
Last active January 17, 2021 19:55
Show Gist options
  • Select an option

  • Save ozzpy/aadc8f164acf2d833f037ee8cb18a5d8 to your computer and use it in GitHub Desktop.

Select an option

Save ozzpy/aadc8f164acf2d833f037ee8cb18a5d8 to your computer and use it in GitHub Desktop.
nginx-phpmyadmin.local
server {
listen 80;
listen [::]:80;
root /var/www/phpmyadmin;
index index.php index.html index.htm;
server_name phpmyadmin.local;
location / {
try_files $uri $uri/ =404;
if (!-f $request_filename) {
rewrite ^(.*)$ /index.php last;
}
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
# access_log /home/${OZZPY_DOMAIN}/logs/access.log;
# error_log /home/${OZZPY_DOMAIN}/logs/error.log;
location ~ /\.ht {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment