diff options
-rw-r--r-- | deployment/websites/manifests/static.pp | 4 | ||||
-rw-r--r-- | deployment/websites/templates/vhost_static.conf | 20 |
2 files changed, 22 insertions, 2 deletions
diff --git a/deployment/websites/manifests/static.pp b/deployment/websites/manifests/static.pp index 749f72b0..b82b9029 100644 --- a/deployment/websites/manifests/static.pp +++ b/deployment/websites/manifests/static.pp @@ -10,7 +10,7 @@ class websites::static { ensure => directory, } - subversion::snapshot { "$vhostdir/g": - source => "svn://svn.$::domain/svn/web/www/trunk/g/", + git::snapshot { "$vhostdir": + source => "git://git.$::domain/web/www", } } diff --git a/deployment/websites/templates/vhost_static.conf b/deployment/websites/templates/vhost_static.conf index 866d235a..2d3f4c44 100644 --- a/deployment/websites/templates/vhost_static.conf +++ b/deployment/websites/templates/vhost_static.conf @@ -19,11 +19,21 @@ AddOutputFilterByType DEFLATE application/json text/javascript application/javascript application/x-javascript <Location /> + Deny from all + </Location> + + <Location /g/> Allow from all </Location> <Directory <%= vhostdir %>> Order deny,allow + Deny from All + AllowOverride None + </Directory> + + <Directory <%= vhostdir %>/g> + Order deny,allow Allow from All AllowOverride None </Directory> @@ -52,11 +62,21 @@ AddOutputFilterByType DEFLATE application/json text/javascript application/javascript application/x-javascript <Location /> + Deny from all + </Location> + + <Location /g/> Allow from all </Location> <Directory <%= vhostdir %>> Order deny,allow + Deny from All + AllowOverride None + </Directory> + + <Directory <%= vhostdir %>/g> + Order deny,allow Allow from All AllowOverride None </Directory> |