beber pushed a commit to branch master. http://git.enlightenment.org/website/www.git/commit/?id=a07e48e70c7833bf6fdea2f4469dddcb52915966
commit a07e48e70c7833bf6fdea2f4469dddcb52915966 Author: Bertrand Jacquin <[email protected]> Date: Sun Jan 28 16:12:51 2018 +0000 MINOR: Move to Apache 2.4 "Require all denied" --- public_html/.htaccess.dist | 35 ----------------------------------- public_html/bin/.htaccess | 3 +-- public_html/conf/.htaccess | 4 +--- public_html/data/.htaccess | 3 +-- public_html/inc/.htaccess | 4 +--- 5 files changed, 4 insertions(+), 45 deletions(-) diff --git a/public_html/.htaccess.dist b/public_html/.htaccess.dist deleted file mode 100644 index 5724a6e0..00000000 --- a/public_html/.htaccess.dist +++ /dev/null @@ -1,35 +0,0 @@ -## Enable this to restrict editing to logged in users only - -## You should disable Indexes and MultiViews either here or in the -## global config. Symlinks maybe needed for URL rewriting. -#Options -Indexes -MultiViews +FollowSymLinks - -## make sure nobody gets the htaccess, README, COPYING or VERSION files -<Files ~ "^([\._]ht|README$|VERSION$|COPYING$)"> - Order allow,deny - Deny from all -</Files> - -## Uncomment these rules if you want to have nice URLs using -## $conf['userewrite'] = 1 - not needed for rewrite mode 2 -#RewriteEngine on -# -#RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L] -#RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L] -#RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L] -#RewriteRule ^$ doku.php [L] -#RewriteCond %{REQUEST_FILENAME} !-f -#RewriteCond %{REQUEST_FILENAME} !-d -#RewriteRule (.*) doku.php?id=$1 [QSA,L] -#RewriteRule ^index.php$ doku.php -# -## Not all installations will require the following line. If you do, -## change "/dokuwiki" to the path to your dokuwiki directory relative -## to your document root. -#RewriteBase /dokuwiki -# -## If you enable DokuWikis XML-RPC interface, you should consider to -## restrict access to it over HTTPS only! Uncomment the following two -## rules if your server setup allows HTTPS. -#RewriteCond %{HTTPS} !=on -#RewriteRule ^lib/exe/xmlrpc.php$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301] diff --git a/public_html/bin/.htaccess b/public_html/bin/.htaccess index 281d5c33..b66e8088 100644 --- a/public_html/bin/.htaccess +++ b/public_html/bin/.htaccess @@ -1,2 +1 @@ -order allow,deny -deny from all +Require all denied diff --git a/public_html/conf/.htaccess b/public_html/conf/.htaccess index bcc3ea0b..b66e8088 100644 --- a/public_html/conf/.htaccess +++ b/public_html/conf/.htaccess @@ -1,3 +1 @@ -## no access to the conf directory -order allow,deny -deny from all +Require all denied diff --git a/public_html/data/.htaccess b/public_html/data/.htaccess index 281d5c33..b66e8088 100644 --- a/public_html/data/.htaccess +++ b/public_html/data/.htaccess @@ -1,2 +1 @@ -order allow,deny -deny from all +Require all denied diff --git a/public_html/inc/.htaccess b/public_html/inc/.htaccess index 2d9c357f..b66e8088 100644 --- a/public_html/inc/.htaccess +++ b/public_html/inc/.htaccess @@ -1,3 +1 @@ -## no access to the inc directory -order allow,deny -deny from all +Require all denied --
