Advertisement
METAJIJI

pma alias

Jan 7th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.33 KB | None | 0 0
  1. location /pma/ {
  2.     alias /opt/pma/;
  3.     #try_files $uri /index.php?$args;
  4.  
  5.     index index.html index.htm index.php;
  6.  
  7.     location ~ ^/pma/(.*\.php)(?:$|/) {
  8.         try_files $1 =404;
  9.         include fastcgi_params;
  10.         fastcgi_index index.php;
  11.         fastcgi_param SCRIPT_FILENAME $document_root$1;
  12.         fastcgi_pass unix:/var/run/php5-fpm/pma.socket;
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement