Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2020
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. server
  2. {
  3. listen 80;
  4. server_name yourdomain.com; #将yourdomain.com改为你自己的ddns解析所用域名
  5. index index.html;
  6. root /home/speedtest-5.2;
  7.  
  8. location ~ [^/]\.php(/|$)
  9. {
  10. try_files $uri =404;
  11. fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
  12. fastcgi_index index.php;
  13. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  14. include fastcgi_params;
  15. }
  16. location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)
  17. {
  18. return 404;
  19. }
  20. access_log /var/log/nginx/spt.log;
  21. error_log /var/log/nginx/spt.log;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement