php8.2.conf 998 B

12345678910111213141516171819202122232425262728
  1. # Using (?:pattern) instead of (pattern) is a small optimization that
  2. # avoid capturing the matching pattern (as $1) which isn't used here
  3. <FilesMatch ".+\.ph(?:ar|p|tml)$">
  4. SetHandler application/x-httpd-php
  5. </FilesMatch>
  6. <FilesMatch ".+\.phps$">
  7. SetHandler application/x-httpd-php-source
  8. # Deny access to raw php sources by default
  9. # To re-enable it's recommended to enable access to the files
  10. # only in specific virtual host or directory
  11. Require all denied
  12. </FilesMatch>
  13. # Deny access to files without filename (e.g. '.php')
  14. <FilesMatch "^\.ph(?:ar|p|ps|tml)$">
  15. Require all denied
  16. </FilesMatch>
  17. # Running PHP scripts in user directories is disabled by default
  18. #
  19. # To re-enable PHP in user directories comment the following lines
  20. # (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
  21. # prevents .htaccess files from disabling it.
  22. <IfModule mod_userdir.c>
  23. <Directory /home/*/public_html>
  24. php_admin_flag engine Off
  25. </Directory>
  26. </IfModule>