enable-php-8.conf 328 B

123456789101112
  1. # Nginx UI Template Start
  2. name = "PHP8.1"
  3. author = "@0xJacky"
  4. description = { en = "Enabled PHP 8.1 Config", zh_CN = "启用 PHP 8.1 配置"}
  5. # Nginx UI Template End
  6. location ~ [^/]\.php(/|$)
  7. {
  8. try_files $uri =404;
  9. fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
  10. fastcgi_index index.php;
  11. include fastcgi.conf;
  12. }