Skip to content

Instantly share code, notes, and snippets.

@DaveM2011
Created March 23, 2014 00:57
Show Gist options
  • Save DaveM2011/9716789 to your computer and use it in GitHub Desktop.
Save DaveM2011/9716789 to your computer and use it in GitHub Desktop.
location /phpmyadmin {
root /hub/core;
index index.php index.html index.htm;
rewrite ^/phpmyadmin/(.*)$ /phpmyadmin/index.php last;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /hub/core;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment