From 1c7501e2c56403044b8f3d24f11f4a37cf271757 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 21 Feb 2011 15:14:58 +0000 Subject: - add vhost for forums --- modules/phpbb/manifests/init.pp | 5 +++++ modules/phpbb/templates/forums_vhost.conf | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 modules/phpbb/templates/forums_vhost.conf (limited to 'modules/phpbb') diff --git a/modules/phpbb/manifests/init.pp b/modules/phpbb/manifests/init.pp index 438a28f0..1e04b76a 100644 --- a/modules/phpbb/manifests/init.pp +++ b/modules/phpbb/manifests/init.pp @@ -37,6 +37,11 @@ class phpbb { owner => root, group => root, } + + apache::vhost_base { "forums.$domain": + content => template("phpbb/forums_vhost.conf"), + } + } define phpbb_config($value) { diff --git a/modules/phpbb/templates/forums_vhost.conf b/modules/phpbb/templates/forums_vhost.conf new file mode 100644 index 00000000..bb2721e9 --- /dev/null +++ b/modules/phpbb/templates/forums_vhost.conf @@ -0,0 +1,12 @@ + # TODO redirect based on language settings + # and the presence of the forum + Redirect / /en/ + AliasMatch ^/(..)/(.*) <%= forums_dir %>/$1/phpBB/$2 + + /.*/phpBB/> + Allow from all + + + /.*/phpBB/install/> + Deny from all + -- cgit v1.2.1