aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bcd/templates
diff options
context:
space:
mode:
authorDamien Lallement <dams@mageia.org>2012-01-06 15:06:28 +0000
committerDamien Lallement <dams@mageia.org>2012-01-06 15:06:28 +0000
commita9721784563db29c030b827cdc7d075be21e2c16 (patch)
treed326cf5516898a1a4bdf1a81885517882e4bb699 /modules/bcd/templates
parentb771b90d114919a97789d7ca81f5bfa82aab8738 (diff)
downloadpuppet-a9721784563db29c030b827cdc7d075be21e2c16.tar
puppet-a9721784563db29c030b827cdc7d075be21e2c16.tar.gz
puppet-a9721784563db29c030b827cdc7d075be21e2c16.tar.bz2
puppet-a9721784563db29c030b827cdc7d075be21e2c16.tar.xz
puppet-a9721784563db29c030b827cdc7d075be21e2c16.zip
- restrict access to bcd.mageia.org via http
- add '.htaccess' and '.htpasswd' files - add 'AllowOverride All' and 'Options FollowSymlinks' options
Diffstat (limited to 'modules/bcd/templates')
-rw-r--r--modules/bcd/templates/.htaccess5
-rw-r--r--modules/bcd/templates/.htpasswd2
-rw-r--r--modules/bcd/templates/vhost_bcd.conf2
3 files changed, 9 insertions, 0 deletions
diff --git a/modules/bcd/templates/.htaccess b/modules/bcd/templates/.htaccess
new file mode 100644
index 00000000..63631312
--- /dev/null
+++ b/modules/bcd/templates/.htaccess
@@ -0,0 +1,5 @@
+AuthUserFile <%= bcd_home %>/public_html/.htpasswd
+AuthGroupFile /dev/null
+AuthName "Restricted acces! For a RSYNC account, please mail your 'Mageia Identity' login to dams@mageia.org"
+AuthType Basic
+require valid-user
diff --git a/modules/bcd/templates/.htpasswd b/modules/bcd/templates/.htpasswd
new file mode 100644
index 00000000..457a13a7
--- /dev/null
+++ b/modules/bcd/templates/.htpasswd
@@ -0,0 +1,2 @@
+valstar:42Mx5EawIqVTY
+
diff --git a/modules/bcd/templates/vhost_bcd.conf b/modules/bcd/templates/vhost_bcd.conf
index ceedb418..93d5c00c 100644
--- a/modules/bcd/templates/vhost_bcd.conf
+++ b/modules/bcd/templates/vhost_bcd.conf
@@ -1,3 +1,5 @@
<Directory <%= bcd_home %>/public_html>
+ AllowOverride All
+ Options FollowSymlinks
Options Indexes
</Directory>