Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen 443 ssl http2;
  4. server_name .my.my;
  5. root "/home/vagrant/code/phpmyadmin";
  6.  
  7. index index.html index.htm index.php;
  8.  
  9. charset utf-8;
  10.  
  11.  
  12.  
  13. location / {
  14. try_files $uri $uri/ /index.php?$query_string;
  15.  
  16. }
  17.  
  18.  
  19.  
  20. location = /favicon.ico { access_log off; log_not_found off; }
  21. location = /robots.txt { access_log off; log_not_found off; }
  22.  
  23. access_log off;
  24. error_log /var/log/nginx/my.my-error.log error;
  25.  
  26. sendfile off;
  27.  
  28. location ~ \.php$ {
  29. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  30. fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
  31. fastcgi_index index.php;
  32. include fastcgi_params;
  33. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  34.  
  35.  
  36. fastcgi_intercept_errors off;
  37. fastcgi_buffer_size 16k;
  38. fastcgi_buffers 4 16k;
  39. fastcgi_connect_timeout 300;
  40. fastcgi_send_timeout 300;
  41. fastcgi_read_timeout 300;
  42. }
  43.  
  44. location ~ /\.ht {
  45. deny all;
  46. }
  47.  
  48. ssl_certificate /etc/nginx/ssl/my.my.crt;
  49. ssl_certificate_key /etc/nginx/ssl/my.my.key;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement