Advertisement
Pychol

phpmyadmin.conf

Mar 19th, 2021
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name <domain>;
  4.  
  5. root /var/www/phpmyadmin;
  6. index index.php;
  7.  
  8. # allow larger file uploads and longer script runtimes
  9. client_max_body_size 100m;
  10. client_body_timeout 120s;
  11.  
  12. sendfile off;
  13.  
  14. # See https://hstspreload.org/ before uncommenting the line below.
  15. # add_header Strict-Transport-Security "max-age=15768000; preload;";
  16. add_header X-Content-Type-Options nosniff;
  17. add_header X-XSS-Protection "1; mode=block";
  18. add_header X-Robots-Tag none;
  19. add_header Content-Security-Policy "frame-ancestors 'self'";
  20. add_header X-Frame-Options DENY;
  21. add_header Referrer-Policy same-origin;
  22.  
  23. location / {
  24. try_files $uri $uri/ /index.php?$query_string;
  25. }
  26.  
  27. location ~ \.php$ {
  28. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  29. fastcgi_pass unix:/run/php/php7.4-fpm.sock;
  30. fastcgi_index index.php;
  31. include fastcgi_params;
  32. fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
  33. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  34. fastcgi_param HTTP_PROXY "";
  35. fastcgi_intercept_errors off;
  36. fastcgi_buffer_size 16k;
  37. fastcgi_buffers 4 16k;
  38. fastcgi_connect_timeout 300;
  39. fastcgi_send_timeout 300;
  40. fastcgi_read_timeout 300;
  41. include /etc/nginx/fastcgi_params;
  42. }
  43.  
  44. location ~ /\.ht {
  45. deny all;
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement