simplify httpd config
This commit is contained in:
parent
07fe7c3d0e
commit
dcf7d42aae
1 changed files with 2 additions and 14 deletions
|
|
@ -5,31 +5,19 @@ Alias /wordpress /usr/share/wordpress
|
|||
|
||||
<Directory /usr/share/wordpress>
|
||||
AllowOverride Options
|
||||
<IfModule mod_authz_core.c>
|
||||
# Apache 2.4
|
||||
Require local
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_core.c>
|
||||
# Apache 2.2
|
||||
Order Deny,Allow
|
||||
Deny from All
|
||||
Allow from 127.0.0.1
|
||||
Allow from ::1
|
||||
</IfModule>
|
||||
</Directory>
|
||||
|
||||
<Directory /usr/share/wordpress/wp-content/uploads>
|
||||
# Deny access to any php file in the uploads directory
|
||||
<FilesMatch "\.(php|phar)$">
|
||||
Order Deny,Allow
|
||||
Deny from all
|
||||
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)$">
|
||||
Order Deny,Allow
|
||||
Deny from all
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
</Directory>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue