diff --git a/manifests/init.pp b/manifests/init.pp index ccc6e20..cde62ba 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -140,16 +140,20 @@ class phabricator ( } include apache + include apache::ssl + include apache::php + a2mod { 'rewrite': ensure => present, } apache::vhost { $vhost_name: port => 443, - docroot => "${instance_dir}/phabricator/webroot", + docroot => "${instance_dir}/phabricator/webroot/", priority => '50', template => 'phabricator/vhost.erb', ssl => true, + require => File[$instance_dir], } } diff --git a/templates/vhost.erb b/templates/vhost.erb index e99e0c6..933f817 100644 --- a/templates/vhost.erb +++ b/templates/vhost.erb @@ -11,7 +11,7 @@ Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny - allow from all + Allow from all RewriteEngine on @@ -49,7 +49,8 @@ Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny - allow from all + Allow from all + Require all granted RewriteEngine on