Advertisement
Freeman000

Untitled

Oct 21st, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement