summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2018-01-28 16:12:51 +0000
committerBertrand Jacquin <bertrand@jacquin.bzh>2018-01-28 16:12:51 +0000
commita07e48e70c7833bf6fdea2f4469dddcb52915966 (patch)
treec970ecb1599db216be50e3e0c9b8ec4718b79cb3
parent19a03a1a8e21c74fc923b55c41a6adee328d3cba (diff)
MINOR: Move to Apache 2.4 "Require all denied"
-rw-r--r--public_html/.htaccess.dist35
-rw-r--r--public_html/bin/.htaccess3
-rw-r--r--public_html/conf/.htaccess4
-rw-r--r--public_html/data/.htaccess3
-rw-r--r--public_html/inc/.htaccess4
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 @@
1## Enable this to restrict editing to logged in users only
2
3## You should disable Indexes and MultiViews either here or in the
4## global config. Symlinks maybe needed for URL rewriting.
5#Options -Indexes -MultiViews +FollowSymLinks
6
7## make sure nobody gets the htaccess, README, COPYING or VERSION files
8<Files ~ "^([\._]ht|README$|VERSION$|COPYING$)">
9 Order allow,deny
10 Deny from all
11</Files>
12
13## Uncomment these rules if you want to have nice URLs using
14## $conf['userewrite'] = 1 - not needed for rewrite mode 2
15#RewriteEngine on
16#
17#RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
18#RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
19#RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
20#RewriteRule ^$ doku.php [L]
21#RewriteCond %{REQUEST_FILENAME} !-f
22#RewriteCond %{REQUEST_FILENAME} !-d
23#RewriteRule (.*) doku.php?id=$1 [QSA,L]
24#RewriteRule ^index.php$ doku.php
25#
26## Not all installations will require the following line. If you do,
27## change "/dokuwiki" to the path to your dokuwiki directory relative
28## to your document root.
29#RewriteBase /dokuwiki
30#
31## If you enable DokuWikis XML-RPC interface, you should consider to
32## restrict access to it over HTTPS only! Uncomment the following two
33## rules if your server setup allows HTTPS.
34#RewriteCond %{HTTPS} !=on
35#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 @@
1order allow,deny Require all denied
2deny from all
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 @@
1## no access to the conf directory Require all denied
2order allow,deny
3deny from all
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 @@
1order allow,deny Require all denied
2deny from all
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 @@
1## no access to the inc directory Require all denied
2order allow,deny
3deny from all