Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. server {
  2. server_name 192.168.2.31; # use domain name if you have here
  3. access_log /var/log/nginx/192.168.2.31.access.log;
  4. error_log /var/log/nginx/192.168.2.31.error.log;
  5.  
  6. root /wwwwiki;
  7. # php config let nginx talk to php socket
  8. location ~ [^/]\.php(/|$) {
  9. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  10. if (!-f $document_root$fastcgi_script_name) {
  11. return 404;
  12. }
  13.  
  14. # Mitigate https://httpoxy.org/ vulnerabilities
  15. fastcgi_param HTTP_PROXY "";
  16.  
  17. fastcgi_pass unix:/var/run/php72-fpm.sock;
  18. fastcgi_index index.php;
  19.  
  20. # include the fastcgi_param setting
  21. include fastcgi_params;
  22.  
  23. # SCRIPT_FILENAME parameter is used for PHP FPM determining
  24. # the script name.
  25. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement