Guest User

Untitled

a guest
Sep 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name proba.infinifine.com;
  4. root /home/proba/filemanager/public;
  5.  
  6. add_header X-Frame-Options "SAMEORIGIN";
  7. add_header X-XSS-Protection "1; mode=block";
  8. add_header X-Content-Type-Options "nosniff";
  9.  
  10. index index.html index.htm index.php;
  11.  
  12. charset utf-8;
  13.  
  14. location / {
  15. try_files $uri $uri/ /index.php?$query_string;
  16. }
  17.  
  18. location = /favicon.ico { access_log off; log_not_found off; }
  19. location = /robots.txt { access_log off; log_not_found off; }
  20.  
  21. error_page 404 /index.php;
  22.  
  23. location ~ \.php$ {
  24. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  25. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  26. fastcgi_index index.php;
  27. fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
  28. fastcgi_param DOCUMENT_ROOT $realpath_root
  29. include fastcgi_params;
  30. }
  31.  
  32.  
  33.  
  34. location ~ /\.(?!well-known).* {
  35. deny all;
  36. }
  37. }
Add Comment
Please, Sign In to add comment