23 lines
593 B
Text
23 lines
593 B
Text
Alias /wordpress /usr/share/wordpress
|
|
|
|
# Access is only allowed via local access
|
|
# Change this once configured
|
|
|
|
<Directory /usr/share/wordpress>
|
|
AllowOverride Options
|
|
Require local
|
|
</Directory>
|
|
|
|
<Directory /usr/share/wordpress/wp-content/uploads>
|
|
# Deny access to any php file in the uploads directory
|
|
<FilesMatch "\.(php|phar)$">
|
|
Require all denied
|
|
</FilesMatch>
|
|
</Directory>
|
|
|
|
<Directory /usr/share/wordpress/wp-content/plugins/akismet>
|
|
# Deny access to any php file in the akismet directory
|
|
<FilesMatch "\.(php|txt)$">
|
|
Require all denied
|
|
</FilesMatch>
|
|
</Directory>
|