Skip to content

Instantly share code, notes, and snippets.

@papilip
Created October 21, 2021 20:12
Show Gist options
  • Save papilip/c629c4d290af820ba62370ece8ac5867 to your computer and use it in GitHub Desktop.
Save papilip/c629c4d290af820ba62370ece8ac5867 to your computer and use it in GitHub Desktop.
OSX fichier de configuration pour phpmyadmin
#/usr/local/etc/nginx/servers/phpmyadmin.conf
server {
listen 80;
server_name localhost;
root /usr/local/share;
index index.php;
#error_log /usr/local/var/log/nginx/phpmyadmin.error.log;
#access_log /usr/local/var/log/nginx/phpmyadmin.access.log main;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment