nginx-phpmyadmin.conf 679 B

12345678910111213141516171819202122232425262728293031
  1. server {
  2. listen 80;
  3. location /phpmyadmin {
  4. # server_name phpmyadmin.idroot.net;
  5. root /var/www/phpmyadmin;
  6. index index.php;
  7. ## Images and static content is treated different
  8. location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
  9. access_log off;
  10. expires 30d;
  11. }
  12. location ~ /\.ht {
  13. deny all;
  14. }
  15. location ~ /(libraries|setup/frames|setup/libs) {
  16. deny all;
  17. return 404;
  18. }
  19. location ~ \.php$ {
  20. fastcgi_pass unix:/run/php/php7.4-fpm.sock;
  21. fastcgi_index index.php;
  22. include fastcgi_params;
  23. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  24. }
  25. }
  26. }