Skip to content

Instantly share code, notes, and snippets.

@jbradach
Created August 3, 2014 20:54
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 jbradach/fe6164767e9a95b9ac30 to your computer and use it in GitHub Desktop.
Save jbradach/fe6164767e9a95b9ac30 to your computer and use it in GitHub Desktop.
Nginx location block for phpMyAdmin using an alias.
location /yourlocation {
alias /usr/share/phpmyadmin;
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm-ssl.sock;
fastcgi_index index.php;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment