Advertisement
Guest User

Andy ixatio phpmyadmin nginx

a guest
Aug 22nd, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. location /phpmyadmin {
  2. root /usr/share/;
  3. index index.php;
  4. try_files $uri $uri/ =404;
  5.  
  6. location ~ ^/phpmyadmin/(doc|sql|setup)/ {
  7. deny all;
  8. }
  9.  
  10. location ~ /phpmyadmin/(.+\.php)$ {
  11. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  12. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  13. include fastcgi_params;
  14. include snippets/fastcgi-php.conf;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement