httpd_php.conf.j2 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #
  2. # The following lines prevent .user.ini files from being viewed by Web clients.
  3. #
  4. <Files ".user.ini">
  5. <IfModule mod_authz_core.c>
  6. Require all denied
  7. </IfModule>
  8. <IfModule !mod_authz_core.c>
  9. Order allow,deny
  10. Deny from all
  11. Satisfy All
  12. </IfModule>
  13. </Files>
  14. #
  15. # Allow php to handle Multiviews
  16. #
  17. AddType text/html .php
  18. #
  19. # Add index.php to the list of files that will be served as directory
  20. # indexes.
  21. #
  22. DirectoryIndex index.php
  23. # mod_php options
  24. <IfModule mod_php.c>
  25. #
  26. # Cause the PHP interpreter to handle files with a .php extension.
  27. #
  28. <FilesMatch \.(php|phar)$>
  29. SetHandler application/x-httpd-php
  30. </FilesMatch>
  31. #
  32. # Uncomment the following lines to allow PHP to pretty-print .phps
  33. # files as PHP source code:
  34. #
  35. #<FilesMatch \.phps$>
  36. # SetHandler application/x-httpd-php-source
  37. #</FilesMatch>
  38. #
  39. # Apache specific PHP configuration options
  40. # those can be override in each configured vhost
  41. #
  42. #php_value session.save_handler "files"
  43. #php_value session.save_path "/var/opt/remi/php81/lib/php/session"
  44. #php_value soap.wsdl_cache_dir "/var/opt/remi/php81/lib/php/wsdlcache"
  45. php_value opcache.file_cache "/var/opt/remi/php81/lib/php/opcache"
  46. </IfModule>