Advertisement
qberik

Untitled

Mar 13th, 2023
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1.  
  2. server {
  3. listen 80 default_server;
  4. listen [::]:80 default_server ipv6only=on;
  5.  
  6. root /var/www/html;
  7. index index.php index.html index.htm;
  8.  
  9. access_log /var/log/nginx/a.log;
  10. error_log /var/log/nginx/e.log;
  11.  
  12. location ~ \.php$ {
  13. try_files $uri =404;
  14. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  15. fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
  16. fastcgi_index index.php;
  17. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  18. include fastcgi_params;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement