SHARE
TWEET

Untitled

Freeman000 Oct 21st, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. location /phpmyadmin {
  2.     root /usr/share/;
  3.     index index.php index.html index.htm;
  4.     location ~ ^/phpmyadmin/(.+\.php)$ {
  5.         try_files $uri =404;
  6.         root /usr/share/;
  7.         fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  8.         fastcgi_index index.php;
  9.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  10.         #fastcgi_param PHP_ADMIN_VALUE open_basedir=$base/:/usr/lib/php/:/tmp/:/usr/share/phpmyadmin/;
  11.         fastcgi_param PHP_ADMIN_VALUE open_basedir=/;
  12.  
  13.       include /etc/nginx/fastcgi_params;
  14.  
  15.     }
  16.  
  17.     location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
  18.         root /usr/share/;
  19.     }
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top