From 630e442cc677b713c16df6060adfe9107160ff6b Mon Sep 17 00:00:00 2001 From: Michael Klier <chi@chimeric.de> Date: Wed, 12 Mar 2008 13:22:50 +0100 Subject: [PATCH] XMLRPC: added https rewrite rules to .htaccess.dist darcs-hash:20080312122250-23886-6ea6a1197505c66c25c840c2c6549dd2d6eea4d6.gz --- .htaccess.dist | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.htaccess.dist b/.htaccess.dist index 743ce20e3..54ad4b589 100644 --- a/.htaccess.dist +++ b/.htaccess.dist @@ -20,6 +20,12 @@ ## 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] +# #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] -- GitLab