nginx-phpmyadmin.conf 706 B

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