github.com/drud/ddev@v1.21.5-alpha1.0.20230226034409-94fcc4b94453/containers/ddev-webserver/ddev-webserver-base-files/etc/apache2/mods-available/php7.0.conf (about)

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