John Berninger 5247492
Alias /wordpress /usr/share/wordpress
John Berninger 5247492
3b6aed1
# Access is only allowed via local access
3b6aed1
# Change this once configured
3b6aed1
John Berninger 5247492
<Directory /usr/share/wordpress>
John Berninger 5247492
  AllowOverride Options
b25e975
    Require local
John Berninger 5247492
</Directory>
240dbed
3b6aed1
<Directory /usr/share/wordpress/wp-content/uploads>
3b6aed1
  # Deny access to any php file in the uploads directory
3784ddd
  <FilesMatch "\.(php|phar)$">
dcf7d42
    Require all denied
3b6aed1
  </FilesMatch>
3b6aed1
</Directory>
3b6aed1
240dbed
<Directory /usr/share/wordpress/wp-content/plugins/akismet>
3b6aed1
  # Deny access to any php file in the akismet directory
240dbed
  <FilesMatch "\.(php|txt)$">
dcf7d42
    Require all denied
240dbed
  </FilesMatch>
240dbed
</Directory>