You'll probably want to use a custom code fragment for that chunk.
  class { 'apache':  }
  include apache::mod::wsgi

  apache::vhost { '*':
    servername            => '...',
    port                  => '80',
    docroot               => '/var/www/djangoDeploy',
    directories           =>  [ { 'path'     => '/var/www/djangoDeploy',}, 
],
        custom_fragment                    => '
        <Files wsgi.py>
      Order deny,allow
      Allow from all
    </Files>
        ',
    wsgi_script_aliases   => {'/djangoDeploy' => 
'/var/www/djangoDeploy/wsgi.py'},
  }

On Friday, January 23, 2015 at 5:58:50 AM UTC-8, Fabio Surrage wrote:
>
>
> Hello, 
>
> Im using the module puppet-apache to configure a machine with django 
> (python/wsgi).
>
> In the Puppet server, I tried:
>
>   class { 'apache':  }
>
>   include apache::mod::wsgi
>
>   apache::vhost { '*':
>     servername            => '...',
>     port                  => '80',
>     docroot               => '/var/www/djangoDeploy',
>     directories           =>  [ { 'path'     => 'wsgi.py',
>                                   'provider' => 'files',
>                                   'allow'    => 'from all'
>                               }, ],
>     wsgi_script_aliases   => {'/djangoDeploy' => 
> '/var/www/djangoDeploy/wsgi.py'},
>   }
>
> Then I got:
>
> <VirtualHost *:80>
>   ServerName ...
>
>   ## Vhost docroot
>   DocumentRoot "/var/www/djangoDeploy"
>
>   <Files "wsgi.py">
>     Require all granted
>   </Files>
>   ...
>
>   WSGIScriptAlias /djangoDeploy "/var/www/djangoDeploy/wsgi.py"
> </VirtualHost>
>
> But what I need is:
>
> <VirtualHost *:80>
>   ServerName ...
>   WSGIScriptAlias /djangoDeploy /var/www/djangoDeploy/wsgi.py
>
>   <Directory /var/www/djangoDeploy>
>     <Files wsgi.py>
>       Order deny,allow
>       Allow from all
>     </Files>
>   </Directory>
>
> Any tips for me ? Thanks in advance !
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e7d91adc-5305-4287-b635-207ba5e3b9fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to