diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/apache/manifests/init.pp | 2 | ||||
-rw-r--r-- | modules/apache/templates/vhost_wsgi.conf | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp index e21febcf..bcad0d24 100644 --- a/modules/apache/manifests/init.pp +++ b/modules/apache/manifests/init.pp @@ -157,7 +157,7 @@ class apache { } } - define vhost_wsgi($wsgi_path) { + define vhost_wsgi($wsgi_path, $aliases = false) { include apache::mod_wsgi file { "$name.conf": path => "/etc/httpd/conf/vhosts.d/$name.conf", diff --git a/modules/apache/templates/vhost_wsgi.conf b/modules/apache/templates/vhost_wsgi.conf index 5c30d337..c4973cd7 100644 --- a/modules/apache/templates/vhost_wsgi.conf +++ b/modules/apache/templates/vhost_wsgi.conf @@ -4,6 +4,10 @@ DocumentRoot /dev/null WSGIScriptAlias / <%= wsgi_path %> + +<%- aliases.each_pair do |key,value| -%> + Alias <%= key %> <%= value %> +<%- end -%> <Location /> Allow from all </Location> |