enable-php-8.conf 332 B

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